From 2f6921b9a27664638528a6d09222eca24a5b27f8 Mon Sep 17 00:00:00 2001 From: Duncaen Date: Sat, 15 Apr 2017 18:31:17 +0200 Subject: [PATCH] farbfeld: update to 3. --- srcpkgs/farbfeld/template | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/srcpkgs/farbfeld/template b/srcpkgs/farbfeld/template index 6ec0c6d5e8..7486e8a160 100644 --- a/srcpkgs/farbfeld/template +++ b/srcpkgs/farbfeld/template @@ -1,17 +1,24 @@ # Template file for 'farbfeld' pkgname=farbfeld -version=2 +version=3 revision=1 -build_style=gnu-makefile -make_install_args="MANPREFIX=/usr/share/man" makedepends="libpng-devel libjpeg-turbo-devel" short_desc="Suckless image format and conversion tools" maintainer="Duncaen " license="ISC" -homepage="http://git.suckless.org/farbfeld" +homepage="http://tools.suckless.org/farbfeld/" distfiles="http://dl.suckless.org/farbfeld/farbfeld-${version}.tar.gz" -checksum=a366e7628274fb9b4dc9508a7340a32b5e7557d99895b7ed7b5165241d613f58 +checksum=5b953b86a72d3feaedf62698532c8888e5f6e2f6363193a4cc8cee0e38c378ad -post_install() { +do_configure() { + sed -i "/CFLAGS/s|\-Os\$|$CFLAGS|" config.mk + sed -i "/LDFLAGS/s|\-s\$|$LDFLAGS|" config.mk + sed -i 's|$(LDFLAGS) $($\*\-LDFLAGS)|$($*-LDFLAGS) $(LDFLAGS)|' Makefile +} +do_build() { + make CC=$CC +} +do_install() { + make PREFIX=/usr MANPREFIX=/usr/share/man DESTDIR=$DESTDIR install vlicense LICENSE }