1# Contributor: Francesco Colista <fcolista@alpinelinux.org>2# Maintainer: Lindsay Zhou3maintainer="Lindsay Zhou <i@lin.moe>"4pkgname=simde-lg5_pkgname=simde6pkgver=0.8.27pkgrel=08pkgdesc="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.gz16 musl-compatibility.patch17 disable-tests.patch18 fix-lsx-native.patch19 "20builddir="$srcdir/$_pkgname-$pkgver"2122build() {23 abuild-meson -Db_lto=true . output24 meson compile -C output25}2627check() {28 meson test --print-errorlogs -C output29}3031package() {32 DESTDIR="$pkgdir" meson install --no-rebuild -C output33 mkdir -p "$pkgdir"/usr/include/simde/34 cp simde/musl-roundeven-compat.h "$pkgdir"/usr/include/simde/35}3637sha512sums="384e42d7140c0afae507773527c6c0c07e6f0cdad59a1d42ebcf4bd223fc9f71e91a2e3db7746aca3c0c5ad2a13333c2322ce1e384c7d699ddfe33bed6f107aec5 simde-0.8.2.tar.gz39d4560988a1f0bd5978ee1c88f2baa72fa1182c7a75609bc7d7a841d75d98f24db0c2d5b068aab60f264b9a661841346e975b0d436ab7c09a7b70f7fd8507d1aa musl-compatibility.patch407eb661416f51a0a0ee2e4b26064cf6b81256a4f54c24d07f055358b82468ccd0d59a9a69e3a51ab3522e552c2b3d70a350e5696dc2a5d232f97c954d7ec5a33f disable-tests.patch417c4b8c2e39061b4f239918dff5154cd310ccd6035061aa3ac06153d9af9918ae29b58e102b971ea93cd271ccf2e255a3040633082019f6b6a24d49b0410cb6a0 fix-lsx-native.patch42"