aboutsummaryrefslogtreecommitdiffstats
path: root/main/herbstluftwm/APKBUILD
blob: c87e3efecdb10e674630039ac54061f582bb2046 (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
# Contributor: Łukasz Jendrysik
# Maintainer: prspkt <prspkt@protonmail.com>
pkgname=herbstluftwm
pkgver=0.7.1
pkgrel=0
pkgdesc="Manual tiling window manager"
url="https://herbstluftwm.org"
arch="all"
license="BSD-2-Clause"
depends=""
depends_dev=""
makedepends="glib-dev libx11-dev libxinerama-dev"
options=""
install=""
subpackages="
	$pkgname-doc
	$pkgname-bash-completion:bashcomp:noarch
	$pkgname-zsh-completion:zshcomp:noarch
	"
source="https://herbstluftwm.org/tarballs/$pkgname-$pkgver.tar.gz
	no-colors.patch
	"
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

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

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

	install -dm755 "$subpkgdir"/usr/share
	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
	mv "$pkgdir"/usr/share/zsh "$subpkgdir"/usr/share
}

sha512sums="1eb25c6e64bc046fca4b93cb9158515dba793bb14676229cc9c9194660eeccfc0c907ddcc4b15581b9ffb8b7f261ad3e2c8efe60a5d11eeb836208dd289dc199  herbstluftwm-0.7.1.tar.gz
4b625af6d9f2efa471094226af1ecaa8fff51f9c07cd2057157a8837397d92514a4d167de9a24e302cdd929deef2d62ad5d22f6f823822ab132c6fce052fd64c  no-colors.patch"