farbfeld: update to 3.

This commit is contained in:
Duncaen 2017-04-15 18:31:17 +02:00
parent 015bceb180
commit 2f6921b9a2

View file

@ -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 <duncaen@voidlinux.eu>"
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
}