void-packages/srcpkgs/sent/template

28 lines
952 B
Bash
Raw Normal View History

2015-11-18 01:37:47 +00:00
# Template file for 'sent'
pkgname=sent
2015-11-25 10:46:27 +00:00
version=0.2
2015-11-18 01:37:47 +00:00
revision=1
makedepends="libX11-devel libXft-devel freetype-devel libpng-devel"
short_desc="Suckless simple plaintext presentation tool"
maintainer="Duncaen <duncaen@voidlinux.eu>"
license="MIT"
homepage="http://tools.suckless.org/sent"
distfiles="http://dl.suckless.org/tools/sent-${version}.tar.gz"
2015-11-25 10:46:27 +00:00
checksum=53b961f9d92a277a6408df7025b4a6deae6b655a797383c93442290e45391076
2015-11-18 01:37:47 +00:00
do_build() {
cp ${FILESDIR}/config.h config.h
sed -i 's|^CFLAGS +=|override CFLAGS +=|g' config.mk
sed -i 's|^LDFLAGS +=|override LDFLAGS +=|g' config.mk
sed -i "s|/usr/include|$XBPS_CROSS_BASE/usr/include|g" config.mk
sed -i "s|/usr/lib|$XBPS_CROSS_BASE/usr/lib|g" config.mk
make ${makejobs} CC="$CC" CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" \
X11INC="$XBPS_CROSS_BASE/usr/include/X11" X11LIB="$XBPS_CROSS_BASE/usr/lib"
}
do_install() {
make DESTDIR="${DESTDIR}" PREFIX=/usr install
vlicense LICENSE
vdoc README.md
}