mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-03-27 00:12:23 +01:00
63 lines
1.4 KiB
Plaintext
63 lines
1.4 KiB
Plaintext
# Contributor: lauren n. liberda <lauren@selfisekai.rocks>
|
|
# Maintainer: lauren n. liberda <lauren@selfisekai.rocks>
|
|
pkgname=simdutf
|
|
pkgver=6.2.0
|
|
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
|
|
fix-test.patch
|
|
"
|
|
|
|
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="
|
|
2e07075edba7bcfade2cb7a8444a212dcc43427acb64cbfbd2baf13b3269a6e54abea5c15ad93da1414cad9150b9c1014b954be4bd770e424e7bfcbff215ff07 simdutf-6.2.0.tar.gz
|
|
7e4162734e7d36fae259d81b74abeafc0e324f7c14f7d805357110ccb1304ef25ea1bc336e256bbc856c77554bb1752047534e3b53c899f748ace7bb06a7bcc1 fix-test.patch
|
|
"
|