mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-11-01 17:01:34 +01:00
testing/simdutf: new aport
This commit is contained in:
parent
8688eccc6d
commit
abc1f66be1
59
testing/simdutf/APKBUILD
Normal file
59
testing/simdutf/APKBUILD
Normal file
@ -0,0 +1,59 @@
|
||||
# Contributor: lauren n. liberda <lauren@selfisekai.rocks>
|
||||
# Maintainer: lauren n. liberda <lauren@selfisekai.rocks>
|
||||
pkgname=simdutf
|
||||
pkgver=5.2.8
|
||||
pkgrel=0
|
||||
pkgdesc="Unicode validation and transcoding at billions of characters per second"
|
||||
url="https://simdutf.github.io/simdutf/"
|
||||
arch="all"
|
||||
makedepends="
|
||||
cmake
|
||||
samurai
|
||||
"
|
||||
license="Apache-2.0 OR MIT"
|
||||
subpackages="
|
||||
$pkgname-dev
|
||||
$pkgname-doc
|
||||
fastbase64
|
||||
sutf
|
||||
"
|
||||
source="https://github.com/simdutf/simdutf/archive/v$pkgver/simdutf-$pkgver.tar.gz"
|
||||
|
||||
build() {
|
||||
if [ "$CBUILD" != "$CHOST" ]; then
|
||||
local crossopts="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
|
||||
fi
|
||||
cmake -B build -G Ninja \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DCMAKE_INSTALL_LIBDIR=lib \
|
||||
-DBUILD_SHARED_LIBS=ON \
|
||||
-DCMAKE_BUILD_TYPE=None \
|
||||
$crossopts
|
||||
cmake --build build
|
||||
}
|
||||
|
||||
check() {
|
||||
ctest --test-dir build --output-on-failure
|
||||
}
|
||||
|
||||
package() {
|
||||
DESTDIR="$pkgdir" cmake --install build
|
||||
|
||||
install -Dm644 LICENSE-MIT -t "$pkgdir"/usr/share/licenses/$pkgname/
|
||||
}
|
||||
|
||||
doc() {
|
||||
amove usr/share/licenses
|
||||
}
|
||||
|
||||
fastbase64() {
|
||||
amove usr/bin/fastbase64
|
||||
}
|
||||
|
||||
sutf() {
|
||||
amove usr/bin/sutf
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
cd967640ce7a587ba7d0fbf1311bbced04beab341c03875f541179619e561773dffc8feb4b4e685ef549e7ae915b2bbd67f8b0100fd354d77ff0e068b896593f simdutf-5.2.8.tar.gz
|
||||
"
|
||||
Loading…
x
Reference in New Issue
Block a user