aboutsummaryrefslogtreecommitdiffstats
path: root/PKGBUILD
blob: c3cc1f86bb0039e2cba24b3191988c72aa1077af (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
pkgname=j4-dmenu-desktop-git
pkgver=2.12.r8.g0c4e8f0
pkgrel=1

pkgdesc="A rewrite of i3-dmenu-desktop, which is much faster"
url="https://github.com/enkore/j4-dmenu-desktop"
arch=('i686' 'x86_64')
license=('GPL3')

depends=('dmenu')
makedepends=('git' 'cmake')

provides=('j4-dmenu-desktop')
conflicts=('j4-dmenu-desktop')

source=('git+https://github.com/enkore/j4-dmenu-desktop')

md5sums=('SKIP')

pkgver() {
	cd j4-dmenu-desktop
	git describe --long --always | sed -E 's/^r//;s/([^-]*-g)/r\1/;s/-/./g'
}

build() {
	cd j4-dmenu-desktop
	cmake -DCMAKE_INSTALL_PREFIX=/usr -DNO_TESTS=1 .
	make
}

package() {
	cd j4-dmenu-desktop
	make DESTDIR="$pkgdir" install
}