summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a84e1caf0aceda9fc064ffd8cece86937322559a (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: willemw <willemw12@gmail.com>
# Contributor: lmartinez

pkgname=fnott-git
pkgver=1.4.1.r4.g222ca03
pkgrel=1
pkgdesc='Keyboard driven and lightweight Wayland notification daemon'
arch=(x86_64)
url=https://codeberg.org/dnkl/fnott
license=(MIT)
depends=(dbus fcft wlroots)
makedepends=(git meson scdoc tllist wayland-protocols)
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("$pkgname::git+$url.git")
md5sums=('SKIP')

pkgver()  {
  git -C $pkgname describe --long --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  arch-meson $pkgname $pkgname/build
  meson compile -C $pkgname/build
}

check() {
  meson test -C $pkgname/build
}

package() {
  meson install -C $pkgname/build --destdir "$pkgdir"
  install -Dm0644 $pkgname/LICENSE -t "$pkgdir/usr/share/licenses/${pkgname%-git}"
}