void-packages/srcpkgs/farbfeld/template

25 lines
740 B
Bash

# Template file for 'farbfeld'
pkgname=farbfeld
version=3
revision=1
makedepends="libpng-devel libjpeg-turbo-devel"
short_desc="Suckless image format and conversion tools"
maintainer="Duncaen <duncaen@voidlinux.eu>"
license="ISC"
homepage="http://tools.suckless.org/farbfeld/"
distfiles="http://dl.suckless.org/farbfeld/farbfeld-${version}.tar.gz"
checksum=5b953b86a72d3feaedf62698532c8888e5f6e2f6363193a4cc8cee0e38c378ad
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
}