aports/community/libspng/APKBUILD
mio 85918985ca community/libspng: take over maintainership
According to 88341867a2, the maintainer was
last active in 2022, with "No activities found" on gitlab.a.o.
2025-05-26 04:27:31 +00:00

42 lines
1.1 KiB
Text

# Contributor: Alex Yam <alex@alexyam.com>
# Maintainer: mio <miyopan@e.email>
maintainer="mio <miyopan@e.email>"
pkgname=libspng
pkgver=0.7.4
pkgrel=1
pkgdesc="modern alternative to libpng"
url="https://github.com/randy408/libspng"
arch="all"
license="BSD-2-Clause"
makedepends="muon zlib-dev"
checkdepends="libpng-dev"
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/randy408/libspng/archive/refs/tags/v$pkgver.tar.gz
xfail-tests.patch
"
build() {
case "$CARCH" in
x86) local sseopt=false ;;
*) local sseopt=true ;;
esac
abuild-muon \
-Db_lto=true \
-Denable_opt=$sseopt \
-Ddev_build="$(want_check && echo true || echo false)" \
output .
ninja -C output
}
check() {
muon -C output test -R -v
}
package() {
DESTDIR="$pkgdir" muon -C output install
}
sha512sums="
cd729653599ed97f80d19f3048c1b3bc2ac16f922b3465804b1913bc45d9fc8b28b56bc2121fda36e9d3dcdd12612cced5383313b722a5342b613f8781879f1a libspng-0.7.4.tar.gz
456294218bfb426948f48fe5ad8ae3fc7b86163544718f9001a3d6c2081c4dcd83aae8ef5adb8073c5e34938f9af858f84dcb2308be0838c4a4f99657964bee5 xfail-tests.patch
"