summaryrefslogtreecommitdiff
path: root/community/cgif/APKBUILD
blob: 691b807bf5af6c52c1dcb4ef48fa15761611d5ee (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
# Contributor: Alex Yam <alex@alexyam.com>
# Maintainer: Alex Yam <alex@alexyam.com>
pkgname=cgif
pkgver=0.3.1
pkgrel=1
pkgdesc="fast and lightweight GIF encoder written in C"
url="https://github.com/dloebl/cgif"
arch="all"
license="MIT"
makedepends="meson"
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/dloebl/cgif/archive/refs/tags/V$pkgver.tar.gz"

build() {
	abuild-meson \
		-Db_lto=true \
		-Dtests=true \
		. 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="
b1ef7cc74f05f1dfaf58f4edbdb8213a22363cd5971ae5e819f95efdcaf54bf27955746ea94b07f145ac104bf70e3cdcf26388b4ea7e7c06f07d4ee6936789e6  cgif-0.3.1.tar.gz
"