diff options
author | Sören Tempel <soeren+git@soeren-tempel.net> | 2016-12-02 18:27:46 +0100 |
---|---|---|
committer | Sören Tempel <soeren+git@soeren-tempel.net> | 2016-12-22 23:28:11 +0100 |
commit | 741146a018ab85e2972158e6517586c938449ead (patch) | |
tree | 2921d73e98a3702b833f45b994710f73c2344893 /testing/farbfeld | |
parent | eeb2c3561a1bf134710c37e737624c76e5057494 (diff) | |
download | aports-741146a018ab85e2972158e6517586c938449ead.tar.bz2 aports-741146a018ab85e2972158e6517586c938449ead.tar.xz |
testing/farbfeld: new aport
Diffstat (limited to 'testing/farbfeld')
-rw-r--r-- | testing/farbfeld/APKBUILD | 46 | ||||
-rw-r--r-- | testing/farbfeld/gcc6-fixes.patch | 12 |
2 files changed, 58 insertions, 0 deletions
diff --git a/testing/farbfeld/APKBUILD b/testing/farbfeld/APKBUILD new file mode 100644 index 0000000000..2b3252c3c3 --- /dev/null +++ b/testing/farbfeld/APKBUILD @@ -0,0 +1,46 @@ +# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net> +# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net> +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" diff --git a/testing/farbfeld/gcc6-fixes.patch b/testing/farbfeld/gcc6-fixes.patch new file mode 100644 index 0000000000..33aa9fd9a6 --- /dev/null +++ b/testing/farbfeld/gcc6-fixes.patch @@ -0,0 +1,12 @@ +diff -upr farbfeld-2.orig/Makefile farbfeld-2/Makefile +--- farbfeld-2.orig/Makefile 2016-12-02 18:23:51.647145080 +0100 ++++ farbfeld-2/Makefile 2016-12-02 18:24:19.977222457 +0100 +@@ -11,7 +11,7 @@ all: png2ff ff2png jpg2ff + + .c: + @echo CC $< +- @${CC} -o $@ ${CFLAGS} ${LIBS} ${LDFLAGS} $< ++ @${CC} $< -o $@ ${CFLAGS} ${LIBS} ${LDFLAGS} + + clean: + @echo cleaning |