sandy: replace the git pkg by a release

This commit is contained in:
Ypnose 2015-06-14 12:48:14 +02:00
parent 287afdba6e
commit 0ecb264b8a
2 changed files with 26 additions and 32 deletions

View file

@ -1,32 +0,0 @@
# 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
}

26
srcpkgs/sandy/template Normal file
View file

@ -0,0 +1,26 @@
# Template file for 'sandy'
pkgname=sandy
version=0.4
revision=1
makedepends="ncurses-devel"
build_style=gnu-makefile
make_build_args="INCS=-I. LIBS=-lncurses"
short_desc="A simple ncurses text editor"
maintainer="Ypnose <ypnoseATvoidlinuxDOTeu>"
license="MIT"
homepage="http://tools.suckless.org/${pkgname}"
distfiles="http://git.suckless.org/${pkgname}/snapshot/${pkgname}-${version}.tar.gz"
checksum="7b8eda65ee726ed5aef5f1f719d3d86328959ebcdbca9216fed57f7139382aa7"
replaces="sandy-git>=0"
pre_build() {
sed -i 's|-O0 ||g' config.mk
sed -i 's|^CPPFLAGS =|override CPPFLAGS +=|g' config.mk
sed -i 's|^CFLAGS =|override CFLAGS +=|g' config.mk
sed -i 's|^LDFLAGS =|override LDFLAGS +=|g' config.mk
}
post_install() {
vlicense LICENSE
vdoc README
}