aboutsummaryrefslogtreecommitdiffstats
path: root/testing/spectrwm/APKBUILD
blob: f4f739ea564265510248bfe2586110fb44eea6a1 (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
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Contributor: Gabriel Ruse <garuse@gmail.com>
# Maintainer: Gabriel Ruse <garuse@gmail.com>
pkgname=spectrwm
pkgver=2.7.2
_realver="$(echo $pkgver | tr '.' '_')"
pkgrel=1
pkgdesc="A small dynamic tilling window manager for X11"
url="https://github.com/conformal/spectrwm/wiki"
arch="all"
license="ICS"
depends="dmenu"
depends_dev=""
makedepends="bsd-compat-headers libxcursor-dev libxft-dev
	libxt-dev libxrandr-dev libxcb-dev xcb-util-cursor-dev
	xcb-util-keysyms-dev xcb-util-wm-dev libxkbcommon-dev"
install=""
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/conformal/$pkgname/archive/SPECTRWM_${_realver}.tar.gz"

_builddir="$srcdir"/$pkgname-SPECTRWM_$_realver/linux
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	make || return 1
}

package() {
	cd "$_builddir"
	make PREFIX=/usr DESTDIR="$pkgdir/" install || return 1

	mkdir -p "$pkgdir/usr/share/doc/$pkgname"
	install -d "$pkgdir/usr/share/man/man1"
	install -m644 ../*.1 "$pkgdir"/usr/share/man/man1/ || return 1
	install -m644 ../*.conf "$pkgdir"/usr/share/doc/"$pkgname" || return 1
	install -m644 ../baraction.sh ../initscreen.sh ../screenshot.sh \
		"$pkgdir"/usr/share/doc/"$pkgname" || return 1
}

md5sums="64755f7003faf099cebdc3e6b907c4d1  spectrwm-2.7.2.tar.gz"
sha256sums="23a5b306c5cdfda05eba365b652eca34e87f0b4317c7ff8059813adaa1c55afb  spectrwm-2.7.2.tar.gz"
sha512sums="9856bf8b6f2d9eea40edcb00e68a9d72751cd04367e797ded8deb929929944f45e17db8834ea5765a47891ba550c4db94d411e483c5d48805c593c55d522452f  spectrwm-2.7.2.tar.gz"