monsterwm-git: simplify by using the gnu-makefile build_style

This commit is contained in:
Ypnose 2013-12-30 18:19:12 +01:00
parent af91030350
commit 10f4f0ed9c

View file

@ -1,34 +1,31 @@
# Template file for 'monsterwm-git' # Template file for 'monsterwm-git'
pkgname=monsterwm-git pkgname=monsterwm-git
version=20130719 version=20131230
revision=1 revision=1
makedepends="libX11-devel" makedepends="libX11-devel"
build_style=gnu-makefile
make_build_args="INCS=-I. LIBS=-lX11"
short_desc="Minimal and lightweight dynamic tiling window manager" short_desc="Minimal and lightweight dynamic tiling window manager"
maintainer="Ypnose <linuxienATlegtuxDOTorg>" maintainer="Ypnose <linuxienATlegtuxDOTorg>"
license="MIT" license="MIT"
homepage="https://github.com/c00kiemon5ter/monsterwm" homepage="https://github.com/c00kiemon5ter/monsterwm"
do_fetch() { do_fetch() {
local url="git://github.com/c00kiemon5ter/monsterwm" local url="git://github.com/c00kiemon5ter/monsterwm"
msg_normal "Fetching source from $url ...\n" msg_normal "Fetching source from $url ...\n"
git clone ${url} ${pkgname}-${version} git clone ${url} ${pkgname}-${version}
} }
do_build() { pre_build() {
cp ${FILESDIR}/config.h config.h 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() { post_install() {
make PREFIX=/usr DESTDIR=$DESTDIR install
vinstall LICENSE 644 usr/share/licenses/$pkgname vinstall LICENSE 644 usr/share/licenses/$pkgname
} }
monsterwm-git_package() { monsterwm-git_package() {
pkg_install() { pkg_install() {
vmove usr vmove all
} }
} }