void-packages/srcpkgs/sandy/template

27 lines
749 B
Bash

# Template file for 'sandy'
pkgname=sandy
version=0.4
revision=4
build_style=gnu-makefile
make_build_args="INCS=-I. LIBS=-lncurses"
makedepends="ncurses-devel"
short_desc="A simple ncurses text editor"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="http://tools.suckless.org/${pkgname}"
distfiles="${SOURCEFORGE_SITE}/sandyeditor/files/${pkgname}-${version}.tar.gz"
checksum=3c51a891efa2ec9e2aa6ae3c1aa290beaf8075dae9abb9a46b5a7d619cb2fb67
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
}