# Template file for 'sent'
pkgname=sent
version=0.2
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"
checksum=53b961f9d92a277a6408df7025b4a6deae6b655a797383c93442290e45391076

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
}
