sent: update to 1.

This commit is contained in:
Duncaen 2017-09-19 04:57:30 +02:00
parent 5ed654a2f7
commit eded766691

View file

@ -1,27 +1,29 @@
# Template file for 'sent' # Template file for 'sent'
pkgname=sent pkgname=sent
version=0.2 version=1
revision=1 revision=1
makedepends="libX11-devel libXft-devel freetype-devel libpng-devel" create_wrksrc=yes
build_style=gnu-makefile
make_use_env=yes
makedepends="libX11-devel libXft-devel freetype-devel"
depends="farbfeld"
short_desc="Suckless simple plaintext presentation tool" short_desc="Suckless simple plaintext presentation tool"
maintainer="Duncaen <duncaen@voidlinux.eu>" maintainer="Duncaen <duncaen@voidlinux.eu>"
license="MIT" license="MIT"
homepage="http://tools.suckless.org/sent" homepage="http://tools.suckless.org/sent"
distfiles="http://dl.suckless.org/tools/sent-${version}.tar.gz" distfiles="http://dl.suckless.org/tools/sent-${version}.tar.gz"
checksum=53b961f9d92a277a6408df7025b4a6deae6b655a797383c93442290e45391076 checksum=7bf3de9311ce291ff36adf5315b78fa72373e3ab80ca71387fb5884bcbd7be33
do_build() { do_configure() {
cp ${FILESDIR}/config.h config.h cat <<! >>config.mk
sed -i 's|^CFLAGS +=|override CFLAGS +=|g' config.mk INCS = -I${XBPS_CROSS_BASE}/usr/include/freetype2
sed -i 's|^LDFLAGS +=|override LDFLAGS +=|g' config.mk INCS+= -I${XBPS_CROSS_BASE}/usr/include/X11
sed -i "s|/usr/include|$XBPS_CROSS_BASE/usr/include|g" config.mk LIBS = -lXft -lfontconfig -lX11
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 post_install() {
vlicense LICENSE vlicense LICENSE
vdoc README.md vdoc README.md
} }