blob: a3ea187e7a474e1d838764da299150c1b0db6d76 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# 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
"
|