summaryrefslogtreecommitdiff
path: root/user/spectrwm/APKBUILD
blob: 98204837d724728beac47305638fec17c24d14d6 (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
# Contributor: Sheila Aman <sheila@vulpine.house>
# Maintainer: Sheila Aman <sheila@vulpine.house>
pkgname=spectrwm
pkgver=3.4.1
_pkgver=$(printf '%s' "$pkgver" | tr . _)
pkgrel=0
pkgdesc="Small dynamic tiling window manager"
url="https://github.com/conformal/spectrwm"
arch="all"
options="!check"  # No test suite.
license="ISC AND MIT"
depends=""
makedepends="libx11-dev libxcursor-dev libxcb-dev xcb-util-keysyms-dev
	xcb-util-wm-dev libxft-dev libxt-dev libxrandr-dev bsd-compat-headers"
subpackages="$pkgname-doc"
source="spectrwm-$pkgver.tar.gz::https://github.com/conformal/spectrwm/archive/SPECTRWM_$_pkgver.tar.gz"
builddir="$srcdir/spectrwm-SPECTRWM_$_pkgver"

build() {
	CFLAGS="-DSWM_LIB=libswmhack.so" make -C linux PREFIX=/usr
}

package() {
	make PREFIX=/usr DESTDIR="$pkgdir" -C linux install
	for i in screenshot.sh baraction.sh; do
		install -Dm755 $i "$pkgdir"/usr/share/spectrwm/$i
	done
	install -Dm644 spectrwm.conf "$pkgdir"/usr/share/spectrwm/spectrwm.conf
	mkdir -p "$pkgdir"/etc/spectrwm
	for i in spectrwm_*.conf; do
		install -Dm644 $i "$pkgdir"/etc/spectrwm/$i
	done
}

sha512sums="94d468833124b51fa12b29b173126f10f27dd551d599459e4bea589721b3df6f1f0af0ea67326ed3ad462e1203d3bbcb82032ff83abfa0943ec45afd29dedaa6  spectrwm-3.4.1.tar.gz"