summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a2991f85c3f96d18a84248551648945003160cb2 (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
# Maintainer: Eric Engestrom <aur [at] engestrom [dot] ch>
# Maintainer: Martin Franc <me@martinfranc.eu>

pkgname=wob-git
pkgver=0.12
pkgrel=1
pkgdesc='A lightweight overlay volume/backlight/progress/anything bar for Wayland'
arch=('i686' 'x86_64')
url='https://github.com/francma/wob'
license=('ISC')
source=("git+$url")
sha512sums=('SKIP')
depends=('wayland')
makedepends=('meson' 'wayland-protocols' 'scdoc')
conflicts=('wob')
provides=("wob=${pkgver%%+*}")

pkgver() {
  git -C wob describe --abbrev=10 | sed 's/-/+/; s/-/./'
}

build() {
  arch-meson build wob \
    -D b_ndebug=true
  ninja -C build
}

check() {
  ninja -C build test
}

package() {
  DESTDIR="$pkgdir" ninja -C build install
  install -Dm644 wob/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}