aboutsummaryrefslogtreecommitdiffstats
path: root/testing/unpaper
diff options
context:
space:
mode:
authorFabian Affolter <fabian@affolter-engineering.ch>2013-09-04 20:07:51 +0000
committerBartłomiej Piotrowski <b@bpiotrowski.pl>2013-09-08 14:29:33 +0200
commit105932079c9a4d50e70129e0b8907475f5f0a0bc (patch)
tree63f8dfe7bab4756ea646dcb283f505a6eed580cc /testing/unpaper
parentd09451d6c31e0656eca53d1d83bf094ad6848c8b (diff)
downloadaports-105932079c9a4d50e70129e0b8907475f5f0a0bc.tar.bz2
aports-105932079c9a4d50e70129e0b8907475f5f0a0bc.tar.xz
testing/unpaper: upgrade to 0.4.2
Diffstat (limited to 'testing/unpaper')
-rw-r--r--testing/unpaper/APKBUILD24
1 files changed, 17 insertions, 7 deletions
diff --git a/testing/unpaper/APKBUILD b/testing/unpaper/APKBUILD
index 860bb34256..b86aa77a05 100644
--- a/testing/unpaper/APKBUILD
+++ b/testing/unpaper/APKBUILD
@@ -1,7 +1,7 @@
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=unpaper
-pkgver=0.3
+pkgver=0.4.2
pkgrel=0
pkgdesc="Post-processing scanned and photocopied book pages"
url="http://unpaper.berlios.de/"
@@ -12,18 +12,28 @@ depends_dev=""
makedepends=""
install=""
subpackages=""
-source="http://download.berlios.de/$pkgname/$pkgname-bin-$pkgver.tar.gz"
-_builddir="$srcdir"/$pkgname-$pkgver
+source="https://www.flameeyes.eu/files/$pkgname-$pkgver.tar.xz"
+_builddir="$srcdir"/$pkgname-$pkgver
build() {
cd "$_builddir"
- gcc $RPM_OPT_FLAGS -o src/unpaper src/unpaper.c -lm || return 1
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ || return 1
+ make || return 1
}
package() {
cd "$_builddir"
- install -m755 -D "$_builddir"/src/$pkgname \
- "$pkgdir"/usr/bin/$pkgname || return 1
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ rm -f "$pkgdir"/usr/lib/*.la
}
-md5sums="0748137e67fa5796474716a096a82723 unpaper-bin-0.3.tar.gz"
+md5sums="b4f9890e34e6fa13f24f3ced3a06b618 unpaper-0.4.2.tar.xz"
+sha256sums="93743a7c9c85463dceed2520b3f5a6cc3f94a289a670cde753bba0ec8035d453 unpaper-0.4.2.tar.xz"
+sha512sums="a64c5c5ba437e9718120fee66b9a63cb59558a9c09047ce6ab88b38d6a34ff62e37ffa6670c5c2fd491351092f775cd01668c8b8cd353fac80db6b2dfacdc79c unpaper-0.4.2.tar.xz"