# Contributor: Sascha Paunovic <azarus@posteo.net>
# Maintainer: Celeste <cielesti@protonmail.com>
pkgname=spectrwm
pkgver=3.6.0
pkgrel=0
_gittag="SPECTRWM_${pkgver//./_}"
pkgdesc="Dynamic, configurable tiling window manager for X11"
url="https://github.com/conformal/spectrwm"
arch="all"
license="ISC"
depends="
	dmenu-virtual
	font-terminus
	"
makedepends="
	freetype-dev
	libbsd-dev
	libxcursor-dev
	libxft-dev
	libxrandr-dev
	libxt-dev
	xcb-util-keysyms-dev
	xcb-util-wm-dev
	"
options="!check" # No testsuite
subpackages="$pkgname-doc"
source="https://github.com/conformal/spectrwm/archive/$_gittag/spectrwm-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$_gittag"

build() {
	make -C linux PREFIX=/usr
}

package() {
	make -C linux PREFIX=/usr SYSCONFDIR=/etc DESTDIR="$pkgdir" install

	install -Dm644 spectrwm_*.conf -t "$pkgdir"/etc/spectrwm/

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

sha512sums="
70ae19d792ae8b9fcbaaf15d9e1a13b83e992c06ac77333712eca4178270b431adb13125ed316c129aadb2d8243abd9f5b1b6a91505f1b7a04feaf78c6f3d85d  spectrwm-3.6.0.tar.gz
"
