void-packages/srcpkgs/ubase-git/template

33 lines
810 B
Plaintext

# Template file for 'ubase-git'
pkgname=ubase-git
version=20140920
revision=1
build_style=gnu-makefile
hostmakedepends="git"
short_desc="Suckless linux base utils"
maintainer="Ypnose <linuxienATlegtuxDOTorg>"
license="MIT"
homepage="http://tools.suckless.org/ubase"
provides="ubase-${version}_${revision}"
replaces="ubase>=0"
conflicts="base-system-busybox>=0 coreutils>=0 util-linux>=0"
do_fetch() {
local url="git://git.suckless.org/ubase"
msg_normal "Fetching source from $url ...\n"
git clone ${url} ${pkgname}-${version}
}
pre_build() {
LD=$CC
sed -i 's|^CPPFLAGS =|CPPFLAGS +=|g' config.mk
sed -i 's|^CFLAGS =|CFLAGS +=|g' config.mk
sed -i 's|^LDFLAGS =|LDFLAGS +=|g' config.mk
}
post_install() {
vinstall LICENSE 644 usr/share/licenses/ubase
vinstall README 644 usr/share/doc/ubase
}