aboutsummaryrefslogtreecommitdiffstats
path: root/testing/bspwm/APKBUILD
blob: ab6de4abc0936f5ceaed1912f47b30b64393a7af (plain) (blame)
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
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=bspwm
pkgver=0.9
pkgrel=0
pkgdesc="Tiling window manager based on binary space partitioning"
url="https://github.com/baskerville/bspwm"
arch="all"
license="BSD"
depends=""
depends_dev=""
makedepends="libxcb-dev xcb-util-dev xcb-util-wm-dev"
install=""
subpackages="
	$pkgname-doc
	$pkgname-zsh-completion:zshcomp
	$pkgname-bash-completion:bashcomp"
source="$pkgname-$pkgver.tar.gz::https://github.com/baskerville/$pkgname/archive/$pkgver.tar.gz"

_builddir="$srcdir"/$pkgname-$pkgver
build() {
	make PREFIX=/usr -C "$_builddir" || return 1
}

package() {
	make DESTDIR="$pkgdir" PREFIX=/usr \
		-C "$_builddir" install || return 1
}

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

	mkdir -p "$subpkgdir"/usr/share/zsh/site-functions
	mv "$pkgdir"/usr/share/zsh/site-functions/* \
		"$subpkgdir"/usr/share/zsh/site-functions || return 1

}

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

	mkdir -p "$subpkgdir"/usr/share/bash-completion/completions/
	mv "$pkgdir"/usr/share/bash-completion/completions/* \
		"$subpkgdir"/usr/share/bash-completion/completions/ || return 1
}

md5sums="fd170b166a4e446a0b08f4027f802b0e  bspwm-0.9.tar.gz"
sha256sums="1efb2db7b8a251bcc006d66a050cf66e9d311761c94890bebf91a32905042fde  bspwm-0.9.tar.gz"
sha512sums="09c4a52dc9f2635973d3b31d507373c27e17a8fb172b2783422049cfc4fa8416bb87a29dea74c2e0e71febdfa53f86a9c09004aa7328b6a08490537329c48370  bspwm-0.9.tar.gz"