aboutsummaryrefslogtreecommitdiffstats
path: root/testing/grim/APKBUILD
blob: 592172e9de177cc5a02b5f7d01f0c7c523e3565f (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
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=grim
pkgver=1.1
pkgrel=0
pkgdesc="Grabs images from Wayland compositors"
url="https://wayland.emersion.fr/grim/"
arch="all"
license="MIT"
makedepends="meson scdoc wayland-dev wayland-protocols cairo-dev"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/emersion/$pkgname/archive/v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	meson \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--buildtype=release \
		. output
	ninja -C output
}

check() {
	cd "$builddir"
	./output/grim -h >/dev/null
}

package() {
	cd "$builddir"
	DESTDIR="$pkgdir" ninja -C output install
}

sha512sums="43a0a6d4b4a25f963f3222d9f25dbf1e3b62b2ee72da1b689bed0e0d5231e28ff784594d87aec16ed5de77f99394f5f7d2c4254203dd3801fdaf7f6e0d492fbc  grim-1.1.tar.gz"