void-packages/srcpkgs/monsterwm-git/template

31 lines
910 B
Bash

# Template file for 'monsterwm-git'
pkgname=monsterwm-git
reverts=20140803_1
version=20120304
revision=2
_commit=eb3820f877a624e00be5a0ee28feb943889cb915
wrksrc="monsterwm-$_commit"
build_style=gnu-makefile
make_build_args="INCS=-I. LIBS=-lX11"
makedepends="libX11-devel"
short_desc="Minimal and lightweight dynamic tiling window manager"
maintainer='Juan RP <xtraeme@voidlinux.org>'
license="MIT"
homepage="https://github.com/c00kiemon5ter/monsterwm"
distfiles="${homepage}/archive/${_commit}.tar.gz"
checksum=404dc50128daee172af2e3c836d4979b675814491db59fde1b039fc6069aca54
LDFLAGS="-lX11"
CFLAGS="-DVERSION=${version} -std=c11"
replaces="monsterwm>=0"
provides="monsterwm-${version}_${revision}"
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
}