diff --git a/srcpkgs/monsterwm-git/template b/srcpkgs/monsterwm-git/template index 80b2453e441..06b0b8f851b 100644 --- a/srcpkgs/monsterwm-git/template +++ b/srcpkgs/monsterwm-git/template @@ -1,34 +1,31 @@ # Template file for 'monsterwm-git' pkgname=monsterwm-git -version=20130719 +version=20131230 revision=1 makedepends="libX11-devel" +build_style=gnu-makefile +make_build_args="INCS=-I. LIBS=-lX11" short_desc="Minimal and lightweight dynamic tiling window manager" maintainer="Ypnose " license="MIT" homepage="https://github.com/c00kiemon5ter/monsterwm" - do_fetch() { local url="git://github.com/c00kiemon5ter/monsterwm" msg_normal "Fetching source from $url ...\n" git clone ${url} ${pkgname}-${version} } -do_build() { +pre_build() { cp ${FILESDIR}/config.h config.h - sed -i 's/CFLAGS =/CFLAGS +=/g' Makefile - sed -i 's/LDFLAGS =/LDFLAGS +=/g' Makefile - make CC=$CC INCS="-I." LIBS="-lX11" ${makejobs} } -do_install() { - make PREFIX=/usr DESTDIR=$DESTDIR install +post_install() { vinstall LICENSE 644 usr/share/licenses/$pkgname } monsterwm-git_package() { pkg_install() { - vmove usr + vmove all } }