This commit is contained in:
Alexander Baldeck 2024-10-29 21:43:20 +01:00
parent 85800270f6
commit 57f7dc763c
3 changed files with 50 additions and 0 deletions

17
vc/.SRCINFO Normal file
View File

@ -0,0 +1,17 @@
pkgbase = vc
pkgdesc = A library to ease explicit vectorization of C++ code
pkgver = 1.4.5
pkgrel = 1
url = https://github.com/VcDevel/Vc
arch = x86_64
arch = powerpc64le
arch = powerpc64
arch = powerpc
arch = riscv64
license = BSD-3-Clause
makedepends = cmake
makedepends = git
source = git+https://github.com/VcDevel/Vc#tag=1.4.5
sha256sums = 6fd6b62bcffe898abcc5058674719fc82715bb60d21e44f44d3710c9434f8a61
pkgname = vc

4
vc/.nvchecker.toml Normal file
View File

@ -0,0 +1,4 @@
[vc]
source = 'github'
github = 'VcDevel/Vc'
use_max_tag = true

29
vc/PKGBUILD Normal file
View File

@ -0,0 +1,29 @@
# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
# Maintainer:
# Contributor: Andrea Scarpino <andrea@archlinux.org>
# Contributor: PedsXing <pedsxing at gmx dot net>
pkgname=vc
pkgver=1.4.5
pkgrel=1
pkgdesc='A library to ease explicit vectorization of C++ code'
url='https://github.com/VcDevel/Vc'
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
license=(BSD-3-Clause)
makedepends=(cmake
git)
source=(git+https://github.com/VcDevel/Vc#tag=$pkgver)
sha256sums=('6fd6b62bcffe898abcc5058674719fc82715bb60d21e44f44d3710c9434f8a61')
build() {
cmake -B build -S Vc \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_CXX_FLAGS="$CXXFLAGS -ffat-lto-objects" \
-DTARGET_ARCHITECTURE=generic
cmake --build build
}
package() {
DESTDIR="$pkgdir" cmake --install build
install -Dm644 Vc/LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
}