mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
41 lines
914 B
Plaintext
41 lines
914 B
Plaintext
# Contributor: Alex Yam <alex@alexyam.com>
|
|
# Maintainer: Alex Yam <alex@alexyam.com>
|
|
pkgname=libspng
|
|
pkgver=0.7.3
|
|
pkgrel=0
|
|
pkgdesc="modern alternative to libpng"
|
|
url="https://github.com/randy408/libspng"
|
|
arch="all"
|
|
license="BSD-2-Clause"
|
|
makedepends="meson zlib-dev"
|
|
subpackages="$pkgname-dev"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/randy408/libspng/archive/refs/tags/v$pkgver.tar.gz"
|
|
|
|
build() {
|
|
case "$CARCH" in
|
|
x86)
|
|
local sseopt=false
|
|
;;
|
|
*)
|
|
local sseopt=true
|
|
;;
|
|
esac
|
|
abuild-meson \
|
|
-Db_lto=true \
|
|
-Denable_opt=$sseopt \
|
|
. output
|
|
meson compile ${JOBS:+-j ${JOBS}} -C output
|
|
}
|
|
|
|
check() {
|
|
meson test --no-rebuild --print-errorlogs -C output
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" meson install --no-rebuild -C output
|
|
}
|
|
|
|
sha512sums="
|
|
f8d7fd6b702cbba3e49289cc51802a5854ef6103578d82cc34b0acd73728b17744ab28c7c3d40666fce2e5fd8ea9f3120e34319d2039b511dac65266d9997aba libspng-0.7.3.tar.gz
|
|
"
|