void-packages/srcpkgs/tabbed/template

27 lines
796 B
Bash

# Template file for 'tabbed'
pkgname=tabbed
version=0.6
revision=4
build_style=gnu-makefile
make_build_args="INCS=-I. LIBS=-lX11"
makedepends="libX11-devel"
short_desc="Tab interface for application supporting Xembed"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="MIT"
homepage="http://tools.suckless.org/tabbed/"
distfiles="http://dl.suckless.org/tools/tabbed-${version}.tar.gz"
checksum=7651ea3acbec5d6a25469e8665da7fc70aba2b4fa61a2a6a5449eafdfd641c42
pre_build() {
sed -i 's|-O0 ||g' config.mk
sed -i 's|^CPPFLAGS =|override CPPFLAGS +=|g' config.mk
sed -i 's|^CFLAGS =|override CFLAGS +=|g' config.mk
sed -i 's|^LDFLAGS =|override LDFLAGS +=|g' config.mk
# Remove BSD_SOURCE warning
sed -i 's/-D_BSD_SOURCE/-D_DEFAULT_SOURCE/g' config.mk
}
post_install() {
vlicense LICENSE
}