2014-07-07 17:30:59 +00:00
|
|
|
# Template file for 'sandy-git'
|
|
|
|
pkgname=sandy-git
|
2014-08-03 12:45:01 +00:00
|
|
|
version=20140803
|
2014-07-07 17:30:59 +00:00
|
|
|
revision=1
|
2014-07-27 14:05:16 +00:00
|
|
|
hostmakedepends="git"
|
2014-07-07 17:30:59 +00:00
|
|
|
makedepends="ncurses-devel"
|
|
|
|
build_style=gnu-makefile
|
|
|
|
short_desc="A simple ncurses text editor"
|
|
|
|
maintainer="Ypnose <linuxienATlegtuxDOTorg>"
|
|
|
|
license="MIT"
|
|
|
|
homepage="http://tools.suckless.org/sandy"
|
|
|
|
provides="sandy-${version}_${revision}"
|
|
|
|
replaces="sandy>=0"
|
|
|
|
|
|
|
|
do_fetch() {
|
|
|
|
local url="git://git.suckless.org/sandy"
|
|
|
|
msg_normal "Fetching source from $url ...\n"
|
|
|
|
git clone ${url} ${pkgname}-${version}
|
|
|
|
}
|
|
|
|
|
|
|
|
pre_build() {
|
|
|
|
sed -i 's| -I/usr/include||g' config.mk
|
|
|
|
sed -i 's|-L/usr/lib ||g' config.mk
|
2014-08-03 12:45:01 +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-07-07 17:30:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
post_install() {
|
|
|
|
vinstall LICENSE 644 usr/share/licenses/sandy
|
|
|
|
vinstall README 644 usr/share/doc/sandy
|
|
|
|
}
|