aboutsummaryrefslogtreecommitdiffstats
path: root/main/herbstluftwm/APKBUILD
blob: 259de309f8805691c7451a68d630becca7bfa215 (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
59
60
61
62
63
64
# Contributor: Łukasz Jendrysik
# Maintainer: Eivind Uggedal <eivind@uggedal.com>
pkgname=herbstluftwm
pkgver=0.7.0
pkgrel=0
pkgdesc="Manual tiling window manager"
url="http://herbstluftwm.org"
arch="all"
license="BSD"
depends=""
depends_dev=""
makedepends="glib-dev libx11-dev libxinerama-dev"
options=""
install=""
subpackages="
	$pkgname-doc
	$pkgname-bash-completion:bashcomp
	$pkgname-zsh-completion:zshcomp"
source="$url/tarballs/$pkgname-$pkgver.tar.gz
	no-colors.patch"

_builddir="$srcdir"/$pkgname-$pkgver
build() {
	cd "$_builddir"
	make PREFIX=/usr DESTDIR="$pkgdir"
}

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

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

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

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

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

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

md5sums="2a4f05d113fd81ceda0246ba63288b05  herbstluftwm-0.7.0.tar.gz
ddbffd2a03ec9ac070b2fa53d1b0f2b8  no-colors.patch"
sha256sums="7e2ffc30b7911407230a5eeb61e044cea78557999107d372bc2dbc3d82d0ae27  herbstluftwm-0.7.0.tar.gz
ab9d263c87f951b85bd556b6ab30ec2ba8e7f5cb306007e22c196a3aaf207014  no-colors.patch"
sha512sums="792e517dff5cfb075b8b5a42b076a7809e983953620212de6d571d3d606c573c83606a0f7694e25d3351c288473f5129191a416fe8977db8438c1016503eacd8  herbstluftwm-0.7.0.tar.gz
4b625af6d9f2efa471094226af1ecaa8fff51f9c07cd2057157a8837397d92514a4d167de9a24e302cdd929deef2d62ad5d22f6f823822ab132c6fce052fd64c  no-colors.patch"