summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 75520f2f46a12799ea934d31d7f64411ad66ad51 (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: Genki Sky <alt+archlinux.org@genki.is>

pkgname=slurp-git
pkgver=1
pkgrel=6
pkgdesc='Select a region in a Wayland compositor'
arch=('x86_64')
url='https://github.com/emersion/slurp'
license=('MIT')
depends=('cairo' 'wayland')
makedepends=('git' 'meson' 'scdoc' 'wayland-protocols')
provides=('slurp')
conflicts=('slurp')
source=('git+https://github.com/emersion/slurp')
sha256sums=('SKIP')

pkgver() {
    cd slurp
    git log -1 --format='%cd.%h' --date=short | tr -d -
}

build() {
    cd slurp
    meson \
        --prefix=/usr \
        --buildtype release \
        build
    ninja -C build
}

package() {
    cd slurp
    DESTDIR="$pkgdir" ninja -C build install
    install -D -m 0644 LICENSE "$pkgdir"/usr/share/licenses/slurp/LICENSE
    install -D -m 0644 README.md "$pkgdir"/usr/share/doc/slurp/README.md
}