void-packages/srcpkgs/spectrwm/template
2016-07-05 10:32:41 +02:00

30 lines
989 B
Bash

# Template file for 'spectrwm'
pkgname=spectrwm
version=3.0.2
revision=1
_distname=SPECTRWM_${version//./_}
wrksrc="spectrwm-${_distname}"
short_desc="A small dynamic tiling window manager for X11"
maintainer="Jakub Skrzypnik <jot.skrzyp@gmail.com>"
makedepends="libXt-devel libxcb-devel xcb-util-devel
xcb-util-wm-devel xcb-util-keysyms-devel
libXrandr-devel libXcursor-devel libXft-devel freetype-devel"
license="ISC"
homepage="http://spectrwm.org"
distfiles="https://github.com/conformal/spectrwm/archive/${_distname}.tar.gz"
checksum=82ce0280039de642c41684f3096abb0388926b60c37987ca1dbc53a0913cab18
do_configure() {
sed -i "s,-I/usr/include/freetype2,-I${XBPS_CROSS_BASE}/usr/include/freetype2,g" linux/Makefile
}
do_build() {
cd linux
make COLOR=0 CC=$CC LD=$LD CFLAGS="$CFLAGS -std=c99" PREFIX=/usr
}
do_install() {
cd linux
make PREFIX=/usr DESTDIR=${DESTDIR} COLOR=0 install
cd ${wrksrc}
sed -n '/\*\//q; /^\/\*/d; s/^ \* \?//p' spectrwm.c > LICENSE
vlicense LICENSE
}