diff options
Diffstat (limited to 'community')
-rw-r--r-- | community/farbfeld/APKBUILD | 42 | ||||
-rw-r--r-- | community/farbfeld/gcc6-fixes.patch | 12 |
2 files changed, 54 insertions, 0 deletions
diff --git a/community/farbfeld/APKBUILD b/community/farbfeld/APKBUILD new file mode 100644 index 0000000000..f37efd5db0 --- /dev/null +++ b/community/farbfeld/APKBUILD @@ -0,0 +1,42 @@ +# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net> +# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net> +pkgname=farbfeld +pkgver=3 +pkgrel=0 +pkgdesc="Lossless image format which is easy to parse, pipe and compress" +url="http://tools.suckless.org/farbfeld/" +arch="all" +license="ISC" +depends="" +makedepends="libpng-dev libjpeg-turbo-dev" +install="" +options="!check" +subpackages="$pkgname-doc" +source="http://dl.suckless.org/$pkgname/$pkgname-$pkgver.tar.gz + gcc6-fixes.patch" +builddir="$srcdir/$pkgname-$pkgver" + +prepare() { + default_prepare + sed -i -e '/CFLAGS/{s/-Os//;s/=/+=/}' \ + -e '/^LDFLAGS = -s$/d' \ + -e 's|/usr/local|/usr|g' \ + "$builddir"/config.mk +} + +build() { + make -C "$builddir" +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" PREFIX=/usr \ + MANPREFIX=/usr/share/man install + + mkdir -p "$pkgdir"/usr/share/doc/$pkgname/ + install -m644 README FORMAT \ + "$pkgdir"/usr/share/doc/$pkgname/ +} + +sha512sums="4f1e44282810bd2724f78857bcde401b82945375c5472b31e39250d660efffd425e0a2da5aecf0133ad3d414c31214d073d00f519bc83960b5bbfd53df3b1c49 farbfeld-3.tar.gz +884bf16aa5e88de6d538f8acd5011326dddee4e5a35ca95b70691d012b9238e88325c2cf69acae072960347146972161a40e0c540d0ec7dd4e536426143c8c83 gcc6-fixes.patch" diff --git a/community/farbfeld/gcc6-fixes.patch b/community/farbfeld/gcc6-fixes.patch new file mode 100644 index 0000000000..6cd8a287be --- /dev/null +++ b/community/farbfeld/gcc6-fixes.patch @@ -0,0 +1,12 @@ +diff -upr farbfeld-3.orig/Makefile farbfeld-3/Makefile +--- farbfeld-3.orig/Makefile 2017-04-15 11:29:09.298371171 +0200 ++++ farbfeld-3/Makefile 2017-04-15 11:30:24.244786006 +0200 +@@ -23,7 +23,7 @@ $(BIN): $(REQ:=.o) + $(BIN:=.o): config.mk $(HDR) $(REQ:=.h) + + .o: +- $(CC) $(LDFLAGS) $($*-LDFLAGS) -o $@ $< $(REQ:=.o) ++ $(CC) $< $(REQ:=.o) -o $@ $(LDFLAGS) $($*-LDFLAGS) + + clean: + rm -f $(BIN) $(BIN:=.o) $(REQ:=.o) |