# Template file for 'sandy'
pkgname=sandy
version=0.4
revision=2
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="1de2b33d25accf0048cd7d51335468f24a5abaa925c534e8b9d70142090794ae"
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
}
