summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5bf5746d593f0ed03382e791dc917c73fd8d71d3 (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
36
37
38
39
40
41
42
43
# Maintainer: Nicola Revelant <nicolarevelant@outlook.com>
# Contributor: mrdotx <klassiker@gmx.de>
# Contributor: shulhan <ms@kilabit.info>
# Contributor: Bill Kolokithas <kolokithas.b@gmail.com>

_pkgname=j4-dmenu-desktop
pkgname=j4-dmenu-desktop-git
pkgver=2.18.r99.g7e3fd04
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')
makedepends=(
	'git'
	'cmake')
optdepends=(
	'dmenu: the default backend'
	'bemenu: an alternative backend'
)
provides=('j4-dmenu-desktop')
conflicts=('j4-dmenu-desktop')
source=('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 -B build -DCMAKE_INSTALL_PREFIX=/usr -DWITH_TESTS=0 -DCMAKE_BUILD_TYPE=Release
	cmake --build build
}

package() {
	cd "$_pkgname"
	cmake --install build --prefix="$pkgdir/usr"
	gzip < "$_pkgname.1" > "build/$_pkgname.1.gz"
	install -Dm0644 README.md -t "$pkgdir/usr/share/doc/$_pkgname"
	install -Dm0644 "build/$_pkgname.1.gz" -t "$pkgdir/usr/share/man/man1"
}