cruxports/highway/Pkgfile

23 lines
619 B
Plaintext
Raw Normal View History

2023-10-16 08:48:42 -04:00
# Description: C++ library that provides portable SIMD/vector intrinsics
# URL: https://github.com/google/highway
# Maintainer: John McQuah, jmcquah at disroot dot org
# Depends on:
name=highway
2024-03-01 19:45:21 -05:00
version=1.1.0
2023-10-16 08:48:42 -04:00
release=1
source=(https://github.com/google/$name/archive/$version/$name-$version.tar.gz)
build() {
mkdir build
cmake -B build -S $name-$version -G Ninja \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DHWY_ENABLE_EXAMPLES=OFF \
-DHWY_ENABLE_TESTS=OFF \
-DBUILD_SHARED_LIBS=ON
ninja -C build -j ${JOBS:-1}
DESTDIR=$PKG ninja -C build install
}