blob: 520746ef10d9fe6b0ad8d7cc8104144616c57247 (
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
41
42
43
|
# Maintainer: emersion <contact emersion fr>
pkgname=grim-git
_pkgname=grim
pkgver=1.4.0.r6.g1573b1020ce2
pkgrel=2
license=('MIT')
pkgdesc='Grab images from a Wayland compositor'
makedepends=("meson" "scdoc" "git")
depends=(
"pango"
"wayland"
"wayland-protocols"
"libjpeg-turbo"
)
arch=("i686" "x86_64")
url='https://sr.ht/~emersion/grim'
source=("${pkgname%-*}::git+https://git.sr.ht/~emersion/grim")
sha1sums=('SKIP')
provides=('grim')
conflicts=('grim')
options=(debug !strip)
pkgver() {
cd "${srcdir}/${_pkgname}"
git describe --long --abbrev=12 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "${srcdir}/${_pkgname}"
arch-meson build/
meson compile -C build/
}
package() {
cd "${srcdir}/${_pkgname}"
if [ -f LICENSE ]; then
install -D -m 644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
fi
DESTDIR="$pkgdir/" ninja -C build install
}
|