aboutsummaryrefslogtreecommitdiffstats
path: root/main/herbstluftwm/APKBUILD
blob: 52006e2165407722806bdd05ce1943e7f4e251e6 (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
# Maintainer: Eivind Uggedal <eivind@uggedal.com>
pkgname=herbstluftwm
pkgver=0.6.2
pkgrel=2
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"

_builddir="$srcdir"/$pkgname-$pkgver

build() {
	cd "$_builddir"

	make PREFIX=/usr DESTDIR="$pkgdir"
}

package() {
	cd "$_builddir"

	make \
		PREFIX=/usr \
		DESTDIR="$pkgdir" \
		ZSHCOMPLETIONDIR=/usr/share/zsh/site-functions \
		BASHCOMPLETIONDIR=/usr/share/bash-completion/completions \
		install || return 1
}

bashcomp() {
	pkgdesc="Bash completion for $pkgname"
	arch="noarch"
	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"
	arch="noarch"
	depends=""
	install_if="$pkgname=$pkgver-r$pkgrel zsh"

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

md5sums="8bfbbdb16cf88821c8dacd5165590fd2  herbstluftwm-0.6.2.tar.gz"
sha256sums="a89f5c397aee7f1aa3b39dd53bc67e282679f02f1c0bf3c33c41a608e217f0ac  herbstluftwm-0.6.2.tar.gz"
sha512sums="3fa70a285e21c9e0717f3301227b2fcc578e819c50d2bf380311253db2f5c864d6e42020b8b278ba4e555b5d75e0572144e06c0e8f2a395155415a4902a95421  herbstluftwm-0.6.2.tar.gz"