void-packages/srcpkgs/sandy-git/template
2014-12-13 19:57:54 +00:00

32 lines
842 B
Bash

# Template file for 'sandy-git'
pkgname=sandy-git
version=20141213
revision=1
hostmakedepends="git"
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
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/sandy
vinstall README 644 usr/share/doc/sandy
}