tabbed: simplify by using the gnu-makefile build_style

This commit is contained in:
Ypnose 2013-12-30 18:28:10 +01:00
parent e80c36e545
commit fb334f72b4

View file

@ -1,9 +1,11 @@
# Template file for 'tabbed'
pkgname=tabbed
version=0.5
revision=2
revision=3
homepage="http://tools.suckless.org/tabbed/"
distfiles="http://dl.suckless.org/tools/$pkgname-$version.tar.gz"
build_style=gnu-makefile
make_build_args="INCS=-I. LIBS=-lX11"
makedepends="libX11-devel"
short_desc="Tab interface for application supporting Xembed"
maintainer="Ypnose <linuxienATlegtuxDOTorg>"
@ -12,22 +14,21 @@ checksum=21226506761909fadebdd5fae0ff5149b9a378836fa515c45efbcbe504321fb9
long_desc="
tabbed is a simple tabbed X window container, for application supporting Xembed"
do_build() {
pre_build() {
cp ${FILESDIR}/config.h config.h
sed -i 's/CPPFLAGS =/CPPFLAGS +=/g' config.mk
sed -i 's/CFLAGS =/CFLAGS +=/g' config.mk
sed -i 's/LDFLAGS =/LDFLAGS +=/g' config.mk
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
}
tabbed_package() {
provides="tabbed-${version}"
replaces="tabbed>=0"
pkg_install() {
vmove usr
vmove all
}
}