void-packages/srcpkgs/tabbed-git/template
2014-09-20 08:35:48 +00:00

33 lines
914 B
Text

# Template file for 'tabbed-git'
pkgname=tabbed-git
version=20140920
revision=1
build_style=gnu-makefile
make_build_args="INCS=-I. LIBS=-lX11"
hostmakedepends="git"
makedepends="libX11-devel"
provides="tabbed-${version}_${revision}"
replaces="tabbed>=0"
short_desc="Simple generic tabbed fronted to xembed aware applications"
maintainer="Ypnose <linuxienATlegtuxDOTorg>"
license="MIT"
homepage="http://tools.suckless.org/tabbed/"
do_fetch() {
local url="git://git.suckless.org/tabbed"
msg_normal "Fetching source from $url ...\n"
git clone ${url} ${pkgname}-${version}
}
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
# Remove BSD_SOURCE warning
sed -i 's/-D_BSD_SOURCE/-D_DEFAULT_SOURCE/g' config.mk
}
post_install() {
vinstall LICENSE 644 usr/share/licenses/tabbed
}