aboutsummaryrefslogtreecommitdiffstats
path: root/testing/spectrwm/APKBUILD
blob: e4be9969b7731c92e82b909ebbe1426a1474d569 (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
# Contributor: Sascha Paunovic <azarus@posteo.net>
# Maintainer: Sascha Paunovic <azarus@posteo.net>
pkgname=spectrwm
_pkgname=SPECTRWM_
pkgver=3.3.0
_pkgver=3_3_0
pkgrel=0
pkgdesc="dynamic, configurable tiling window manager for X11"
options="!check" # No testsuite
url="https://github.com/conformal/spectrwm"
arch="all"
license="ISC"
depends="dmenu terminus-font"
makedepends="bsd-compat-headers freetype-dev libxcursor-dev libxft-dev
	libxrandr-dev libxt-dev xcb-util-keysyms-dev xcb-util-wm-dev"
subpackages="$pkgname-doc"
source="https://github.com/conformal/spectrwm/archive/$_pkgname$_pkgver.tar.gz"
builddir="$srcdir/$pkgname-$_pkgname$_pkgver"

build() {
	cd "$builddir"/linux
	make PREFIX="/usr"
}

package() {
	install -Dm644 spectrwm.conf "$pkgdir"/etc/spectrwm.conf
	mkdir "$pkgdir"/etc/spectrwm
	cp spectrwm_*.conf "$pkgdir"/etc/spectrwm/

	# make default config work
	install -Dm755 baraction.sh "$pkgdir"/usr/share/spectrwm/baraction.sh
	install -Dm755 screenshot.sh "$pkgdir"/usr/share/spectrwm/screenshot.sh

	cd linux
	make PREFIX="/usr" DESTDIR="$pkgdir" install

	# remove unneccessary stuff
	rm "$pkgdir"/usr/bin/scrotwm
	# provide convenience symlink
	ln -s "$pkgdir"/usr/bin/spectrwm "$pkgdir"/usr/bin/scrotwm
}

sha512sums="743affffd0437641a760ae29ccbd0084baee3354dadc48f3fc9ab70bffa2413ffe3af67f1223413aa1bbf8c679fbae1fbbdd71a840b3e44f5df83b527f63c1cc  SPECTRWM_3_3_0.tar.gz"