# Contributor: Sören Tempel # Maintainer: Sören Tempel pkgname=farbfeld pkgver=2 pkgrel=0 pkgdesc="Lossless image format which is easy to parse, pipe and compress" url="http://tools.suckless.org/farbfeld/" arch="all" license="MIT" depends="" makedepends="libpng-dev libjpeg-turbo-dev" install="" subpackages="$pkgname-doc" source="http://dl.suckless.org/$pkgname/$pkgname-$pkgver.tar.gz gcc6-fixes.patch" builddir="$srcdir/$pkgname-$pkgver" prepare() { default_prepare || return 1 sed -i -e '/CFLAGS/{s/-Os//;s/=/+=/}' \ -e '/LDFLAGS/{s/-s//;s/=/+=/}' \ -e 's|/usr/local|/usr|g' \ "$builddir"/config.mk || return 1 } build() { make -C "$builddir" || return 1 } package() { cd "$builddir" make DESTDIR="$pkgdir" PREFIX=/usr \ MANPREFIX=/usr/share/man install || return 1 mkdir -p "$pkgdir"/usr/share/doc/$pkgname/ install -m644 README FORMAT \ "$pkgdir"/usr/share/doc/$pkgname/ \ || return 1 } md5sums="9b2b2328c39cc8ab7656e90471b4367f farbfeld-2.tar.gz 441d0cf658b9b33f471cb23a98efb041 gcc6-fixes.patch" sha256sums="a366e7628274fb9b4dc9508a7340a32b5e7557d99895b7ed7b5165241d613f58 farbfeld-2.tar.gz 16a67495743a8811a446c0a980e20aee7637ea98271cd432318e969e2a29c03e gcc6-fixes.patch" sha512sums="04471f0d6092433083b1441c17fb80db27fcedea6a12ddab3b08eaf9731da06f48560cf49124b56e1e27d7de2b69109b0ce38513ee90c735ac966dc2132e000f farbfeld-2.tar.gz 0fd87266cc57b4986d3353250f1fe92fbd7971322de583726e4aa9d7d165b94855d6b4af1c9aaae42faef7f27a63a291bf3144f89fa2b281889c50bb1d35a2b6 gcc6-fixes.patch"