cwm: simplify by using the gnu-makefile build_style

This commit is contained in:
Ypnose 2013-12-30 15:49:57 +01:00
parent 79d9060b28
commit af91030350

View file

@ -1,7 +1,8 @@
# Template file for 'cwm-git' # Template file for 'cwm-git'
pkgname=cwm-git pkgname=cwm-git
version=20131221 version=20131230
revision=1 revision=1
build_style=gnu-makefile
hostmakedepends="pkg-config bison" hostmakedepends="pkg-config bison"
makedepends="fontconfig-devel libXft-devel libXinerama-devel libXrandr-devel libX11-devel" makedepends="fontconfig-devel libXft-devel libXinerama-devel libXrandr-devel libX11-devel"
short_desc="Lightweight and efficient window manager for X11" short_desc="Lightweight and efficient window manager for X11"
@ -15,14 +16,13 @@ do_fetch() {
git clone ${url} ${pkgname}-${version} git clone ${url} ${pkgname}-${version}
} }
do_build() { pre_build() {
sed -i 's/^CPPFLAGS+=/CPPFLAGS=/' Makefile sed -i 's/^CPPFLAGS+=/CPPFLAGS=/' Makefile
sed -i 's/^LDFLAGS+=/LDFLAGS=/' Makefile sed -i 's/^LDFLAGS+=/LDFLAGS=/' Makefile
make CC=$CC ${makejobs}
} }
do_install() { post_install() {
make PREFIX=/usr DESTDIR=$DESTDIR install vinstall README 644 usr/share/doc/${pkgname}
} }
cwm-git_package() { cwm-git_package() {