aboutsummaryrefslogtreecommitdiffstats
path: root/main/herbstluftwm/APKBUILD
blob: 850f0ea107885844a2c68b51a49ffa7072ebc846 (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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Contributor: Łukasz Jendrysik
# Maintainer: prspkt <prspkt@protonmail.com>
pkgname=herbstluftwm
pkgver=0.7.2
pkgrel=0
pkgdesc="Manual tiling window manager"
url="https://herbstluftwm.org"
arch="all"
license="BSD-2-Clause"
makedepends="glib-dev libx11-dev libxinerama-dev"
subpackages="$pkgname-doc
	$pkgname-bash-completion:bashcomp:noarch
	$pkgname-fish-completion:fishcomp:noarch
	$pkgname-zsh-completion:zshcomp:noarch
	"
source="https://herbstluftwm.org/tarballs/$pkgname-$pkgver.tar.gz"

build() {
	make COLOR=0 PREFIX=/usr DESTDIR="$pkgdir"
}

package() {
	make PREFIX=/usr DESTDIR="$pkgdir" \
		ZSHCOMPLETIONDIR=/usr/share/zsh/site-functions \
		BASHCOMPLETIONDIR=/usr/share/bash-completion/completions \
		install

	mkdir -p "$pkgdir"/usr/share/licenses
	mv "$pkgdir"/usr/share/doc/$pkgname/LICENSE \
		"$pkgdir"/usr/share/licenses/
}

bashcomp() {
	pkgdesc="Bash completion for $pkgname"
	install_if="$pkgname=$pkgver-r$pkgrel bash-completion"

	install -dm755 "$subpkgdir"/usr/share
	mv "$pkgdir"/usr/share/bash-completion "$subpkgdir"/usr/share
}

fishcomp() {
	pkgdesc="Fish completion for $pkgname"
	install_if="$pkgname=$pkgver-r$pkgrel fish"

	mkdir -p "$subpkgdir"/usr/share/fish/completions/
	mv "$pkgdir"/usr/share/fish/vendor_completions.d/*.fish \
		"$subpkgdir"/usr/share/fish/completions/
}

zshcomp() {
	pkgdesc="Zsh completion for $pkgname"
	install_if="$pkgname=$pkgver-r$pkgrel zsh"

	install -dm755 "$subpkgdir"/usr/share
	mv "$pkgdir"/usr/share/zsh "$subpkgdir"/usr/share
}

sha512sums="abb49bbc3de9a0ef619ce7063c1cea0d0d25ab2195c53dc0d33e061ad24060da4bbe9b99b9b9126028cdf68b462d4fcc8d1534431e4892d571ff897a68d2113c  herbstluftwm-0.7.2.tar.gz"