aports

Custom Alpine Linux aports

git clone git://git.lin.moe/aports.git

 1# Contributor: Francesco Colista <fcolista@alpinelinux.org>
 2# Maintainer: Lindsay Zhou
 3maintainer="Lindsay Zhou <i@lin.moe>"
 4pkgname=simde-lg
 5_pkgname=simde
 6pkgver=0.8.2
 7pkgrel=0
 8pkgdesc="Implementations of SIMD instruction sets(for loongarch)"
 9url="https://github.com/simd-everywhere/simde"
10arch="loongarch64"
11license="MIT"
12makedepends="meson"
13subpackages="$pkgname-dev"
14provide="simde"
15source="$_pkgname-$pkgver.tar.gz::https://github.com/simd-everywhere/simde/archive/refs/tags/v$pkgver.tar.gz
16	musl-compatibility.patch
17	disable-tests.patch
18	fix-lsx-native.patch
19	"
20builddir="$srcdir/$_pkgname-$pkgver"
21
22build() {
23	abuild-meson -Db_lto=true . output
24	meson compile -C output
25}
26
27check() {
28	meson test --print-errorlogs -C output
29}
30
31package() {
32	DESTDIR="$pkgdir" meson install --no-rebuild -C output
33	mkdir -p "$pkgdir"/usr/include/simde/
34	cp simde/musl-roundeven-compat.h "$pkgdir"/usr/include/simde/
35}
36
37sha512sums="
384e42d7140c0afae507773527c6c0c07e6f0cdad59a1d42ebcf4bd223fc9f71e91a2e3db7746aca3c0c5ad2a13333c2322ce1e384c7d699ddfe33bed6f107aec5  simde-0.8.2.tar.gz
39d4560988a1f0bd5978ee1c88f2baa72fa1182c7a75609bc7d7a841d75d98f24db0c2d5b068aab60f264b9a661841346e975b0d436ab7c09a7b70f7fd8507d1aa  musl-compatibility.patch
407eb661416f51a0a0ee2e4b26064cf6b81256a4f54c24d07f055358b82468ccd0d59a9a69e3a51ab3522e552c2b3d70a350e5696dc2a5d232f97c954d7ec5a33f  disable-tests.patch
417c4b8c2e39061b4f239918dff5154cd310ccd6035061aa3ac06153d9af9918ae29b58e102b971ea93cd271ccf2e255a3040633082019f6b6a24d49b0410cb6a0  fix-lsx-native.patch
42"