aboutsummaryrefslogtreecommitdiffstats
path: root/community/farbfeld/APKBUILD
diff options
context:
space:
mode:
authorSören Tempel <soeren+git@soeren-tempel.net>2017-10-27 21:02:06 +0200
committerSören Tempel <soeren+git@soeren-tempel.net>2017-10-27 21:02:06 +0200
commit65bb4ab626572e95401e28c805961f60da5a57c2 (patch)
tree5ea81333884d59d5bf59855bc35aea6be723e8a4 /community/farbfeld/APKBUILD
parenta210700f9f0885d9787ba0671cb87ec2201292b2 (diff)
downloadaports-65bb4ab626572e95401e28c805961f60da5a57c2.tar.bz2
aports-65bb4ab626572e95401e28c805961f60da5a57c2.tar.xz
community/farbfeld: move from testing
Diffstat (limited to 'community/farbfeld/APKBUILD')
-rw-r--r--community/farbfeld/APKBUILD42
1 files changed, 42 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"