summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 95420b85df07d3d6ffdc9277a49a8ec649001ea7 (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
pkgname=slurp-git
pkgver=1
pkgrel=3
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://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 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
}