summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4c9e5fd6874e8176e427fdec42bc7d41a6e906e8 (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
# Maintainer: Piotr Miller <nwg.piotr@gmail.com>
# Contributor: HoaS <:-)>
_pkgname=nwg-launchers
pkgname=$_pkgname-git
pkgver=r199.eaad654
pkgrel=1
pkgdesc="GTK+ launchers for sway, i3 and some other WMs (development version)"
arch=('x86_64')
url="https://github.com/nwg-piotr/nwg-launchers"
license=('GPL3')
makedepends=('git' 'meson')
depends=('gtk3' 'gtkmm3' 'nlohmann-json')
conflicts=('nwg-launchers')
source=('nwg-launchers::git+https://github.com/nwg-piotr/nwg-launchers#branch=master')
md5sums=('SKIP')

pkgver() {
   cd "$srcdir/$_pkgname"
   printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
   cd "$srcdir/$_pkgname"
   meson builddir -Dbuildtype=release -Dprefix=/usr
   ninja -C builddir
}

package() {
   cd "$srcdir/$_pkgname"
   DESTDIR="$pkgdir" ninja -C builddir install
}