31 lines
786 B
Text
31 lines
786 B
Text
# Template file for 'sbase-git'
|
|
pkgname=sbase-git
|
|
version=20140803
|
|
revision=1
|
|
build_style=gnu-makefile
|
|
hostmakedepends="git"
|
|
short_desc="Suckless unix tools"
|
|
maintainer="Ypnose <linuxienATlegtuxDOTorg>"
|
|
license="MIT"
|
|
homepage="http://tools.suckless.org/sbase"
|
|
conflicts="coreutils>=0 base-system-busybox>=0"
|
|
provides="sbase-${version}_${revision}"
|
|
replaces="sbase>=0"
|
|
|
|
do_fetch() {
|
|
local url="git://git.suckless.org/sbase"
|
|
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/sbase
|
|
vinstall README 644 usr/share/doc/sbase
|
|
}
|