void-packages/srcpkgs/ubase-git/template

33 lines
810 B
Text
Raw Normal View History

2014-04-22 20:55:23 +00:00
# Template file for 'ubase-git'
pkgname=ubase-git
2014-09-20 08:42:04 +00:00
version=20140920
2014-04-22 20:55:23 +00:00
revision=1
build_style=gnu-makefile
hostmakedepends="git"
2014-04-22 20:55:23 +00:00
short_desc="Suckless linux base utils"
maintainer="Ypnose <linuxienATlegtuxDOTorg>"
license="MIT"
homepage="http://tools.suckless.org/ubase"
2014-05-31 11:29:19 +00:00
provides="ubase-${version}_${revision}"
replaces="ubase>=0"
2014-04-22 20:55:23 +00:00
2014-04-23 07:22:41 +00:00
conflicts="base-system-busybox>=0 coreutils>=0 util-linux>=0"
2014-04-22 20:55:23 +00:00
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
2014-08-20 12:15:31 +00:00
sed -i 's|^CPPFLAGS =|CPPFLAGS +=|g' config.mk
sed -i 's|^CFLAGS =|CFLAGS +=|g' config.mk
sed -i 's|^LDFLAGS =|LDFLAGS +=|g' config.mk
2014-04-22 20:55:23 +00:00
}
post_install() {
2014-07-05 17:12:22 +00:00
vinstall LICENSE 644 usr/share/licenses/ubase
vinstall README 644 usr/share/doc/ubase
2014-04-22 20:55:23 +00:00
}