2014-04-23 19:40:28 +02:00
|
|
|
# Template file for 'sbase-git'
|
|
|
|
pkgname=sbase-git
|
2014-08-03 14:51:31 +02:00
|
|
|
version=20140803
|
2014-07-05 18:34:47 +02:00
|
|
|
revision=1
|
2014-04-23 19:40:28 +02:00
|
|
|
build_style=gnu-makefile
|
2014-07-27 16:05:16 +02:00
|
|
|
hostmakedepends="git"
|
2014-04-23 19:40:28 +02:00
|
|
|
short_desc="Suckless unix tools"
|
|
|
|
maintainer="Ypnose <linuxienATlegtuxDOTorg>"
|
|
|
|
license="MIT"
|
|
|
|
homepage="http://tools.suckless.org/sbase"
|
|
|
|
conflicts="coreutils>=0 base-system-busybox>=0"
|
2014-05-31 13:22:13 +02:00
|
|
|
provides="sbase-${version}_${revision}"
|
|
|
|
replaces="sbase>=0"
|
2014-04-23 19:40:28 +02:00
|
|
|
|
|
|
|
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
|
2014-08-03 14:51:31 +02: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-23 19:40:28 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
post_install() {
|
2014-07-05 18:34:47 +02:00
|
|
|
vinstall LICENSE 644 usr/share/licenses/sbase
|
|
|
|
vinstall README 644 usr/share/doc/sbase
|
2014-04-23 19:40:28 +02:00
|
|
|
}
|