summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f447e08eb63c6a3f375de8f382a9966b10507be9 (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
# Maintainer: Jason Nader <jason *add-dot-here* nader *you-know-what-goes-here* protonmail.com>

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

pkgver() {
  cd "$_pkgname"
  git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  arch-meson $_pkgname build
  meson compile -C build
}

package() {
    meson install -C build --destdir "$pkgdir"
    cd $_pkgname
    install -D -m 0644 LICENSE "$pkgdir/usr/share/licenses/$_pkgname/LICENSE"
    install -D -m 0644 README.md "$pkgdir/usr/share/doc/$_pkgname/README.md"
}