diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2014-12-30 19:17:31 +0100 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2014-12-30 19:17:31 +0100 |
commit | ce493b8eb9218fe159713655124acf58bf12bc1c (patch) | |
tree | a66ba154b1bd2693be69650069b6eb197547ee80 /testing/unpaper | |
parent | 0a8303a1d35591ab0e14bf10f20f0a4c21fe128c (diff) | |
download | aports-ce493b8eb9218fe159713655124acf58bf12bc1c.tar.bz2 aports-ce493b8eb9218fe159713655124acf58bf12bc1c.tar.xz |
testing/unpaper: upgrade to 6.1
Diffstat (limited to 'testing/unpaper')
-rw-r--r-- | testing/unpaper/APKBUILD | 53 |
1 files changed, 38 insertions, 15 deletions
diff --git a/testing/unpaper/APKBUILD b/testing/unpaper/APKBUILD index 860bb34256..c80ebefc87 100644 --- a/testing/unpaper/APKBUILD +++ b/testing/unpaper/APKBUILD @@ -1,29 +1,52 @@ -# Contributor: Fabian Affolter <fabian@affolter-engineering.ch> -# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> +# Contributor: Carlo Landmeter <clandmeter@gmail.com> +# Maintainer: pkgname=unpaper -pkgver=0.3 +pkgver=6.1 pkgrel=0 -pkgdesc="Post-processing scanned and photocopied book pages" -url="http://unpaper.berlios.de/" +pkgdesc="post-processing tool for scanned sheets of paper" +url="https://github.com/Flameeyes/unpaper" arch="all" -license="GPL+" +license="GPL" depends="" -depends_dev="" -makedepends="" +depends_dev="ffmpeg-dev" +makedepends="$depends_dev automake autoconf libtool libxslt" install="" -subpackages="" -source="http://download.berlios.de/$pkgname/$pkgname-bin-$pkgver.tar.gz" -_builddir="$srcdir"/$pkgname-$pkgver +subpackages="$pkgname-doc" +source="$pkgname-$pkgver.tar.gz::https://github.com/Flameeyes/unpaper/tarball/unpaper-$pkgver" + +_builddir="$srcdir/Flameeyes-unpaper-5e7fdc7" + +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} build() { cd "$_builddir" - gcc $RPM_OPT_FLAGS -o src/unpaper src/unpaper.c -lm || return 1 + aclocal && automake --add-missing && autoconf + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --localstatedir=/var \ + || return 1 + make || return 1 } package() { cd "$_builddir" - install -m755 -D "$_builddir"/src/$pkgname \ - "$pkgdir"/usr/bin/$pkgname || return 1 + make DESTDIR="$pkgdir" install || return 1 + rm -f "$pkgdir"/usr/lib/*.la } -md5sums="0748137e67fa5796474716a096a82723 unpaper-bin-0.3.tar.gz" +md5sums="ade1513be12ffc73063db0b375017ca7 unpaper-6.1.tar.gz" +sha256sums="9421fa66c8506f12dc0cc4c3814f1b41903420f6afeecd0db50fae49fcdb5740 unpaper-6.1.tar.gz" +sha512sums="96e4f5748f836044d47a08b5c61f4367c8497d64b61e588a38b11ae99261a051c2c77e61aef85803dcd904aa8b03d78a5fa1c467bb3e632dbe9dbd68c4719557 unpaper-6.1.tar.gz" |