# Maintainer: Bill Kolokithas pkgname=j4-dmenu-desktop-git pkgver=2.12.r9.gebe007a pkgrel=1 pkgdesc="A rewrite of i3-dmenu-desktop, which is much faster" arch=('i686' 'x86_64') url="https://github.com/enkore/j4-dmenu-desktop" license=('GPL3') optdepends=( 'dmenu: install for the default backend' 'bemenu: an alternative backend' ) makedepends=('git' 'cmake') provides=('j4-dmenu-desktop') conflicts=('j4-dmenu-desktop') source=("$pkgname::git+https://github.com/enkore/j4-dmenu-desktop.git") md5sums=('SKIP') pkgver() { cd $pkgname git describe --long | sed -r 's/^r//;s/([^-]*-g)/r\1/;s/-/./g' } build() { cd $pkgname cmake -D CMAKE_INSTALL_PREFIX=/usr -D WITH_TESTS=OFF . make } package() { cd $pkgname make DESTDIR="$pkgdir"/ install }