void-packages/srcpkgs/monsterwm-git/template

31 lines
909 B
Bash

# Template file for 'monsterwm-git'
pkgname=monsterwm-git
reverts=20140803_1
version=20120304
revision=1
_commit=eb3820f877a624e00be5a0ee28feb943889cb915
makedepends="libX11-devel"
build_style=gnu-makefile
make_build_args="INCS=-I. LIBS=-lX11"
short_desc="Minimal and lightweight dynamic tiling window manager"
maintainer='Juan RP <xtraeme@voidlinux.eu>'
license="MIT"
homepage="https://github.com/c00kiemon5ter/monsterwm"
provides="monsterwm-${version}_${revision}"
replaces="monsterwm>=0"
CFLAGS="-DVERSION=${version} -std=c11"
LDFLAGS="-lX11"
wrksrc="monsterwm-$_commit"
distfiles="${homepage}/archive/${_commit}.tar.gz"
checksum=404dc50128daee172af2e3c836d4979b675814491db59fde1b039fc6069aca54
pre_build() {
[ -e ${FILESDIR}/config.h ] && cp ${FILESDIR}/config.h config.h
sed -i 's|^CFLAGS =|CFLAGS +=|g' Makefile
sed -i 's|^LDFLAGS =|LDFLAGS +=|g' Makefile
}
post_install() {
vlicense LICENSE
}