diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2017-08-01 02:08:17 +0200 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2017-08-01 02:08:22 +0200 |
commit | 28a41ddb408401b6c3afc5b89b089fbafbd7eaad (patch) | |
tree | 95ee6d5aef88ea4c3b5c638f74a0592e9c4fb7ca | |
parent | 6d9ca010c3aabb2d9ef07818d0baccd086f62e19 (diff) | |
download | aports-28a41ddb408401b6c3afc5b89b089fbafbd7eaad.tar.bz2 aports-28a41ddb408401b6c3afc5b89b089fbafbd7eaad.tar.xz |
community/unpaper: moved from unmaintained
-rw-r--r-- | community/unpaper/APKBUILD (renamed from unmaintained/unpaper/APKBUILD) | 34 |
1 files changed, 12 insertions, 22 deletions
diff --git a/unmaintained/unpaper/APKBUILD b/community/unpaper/APKBUILD index bdda5bafcd..3192151193 100644 --- a/unmaintained/unpaper/APKBUILD +++ b/community/unpaper/APKBUILD @@ -1,5 +1,5 @@ # Contributor: Carlo Landmeter <clandmeter@gmail.com> -# Maintainer: +# Maintainer: Carlo Landmeter <clandmeter@gmail.com> pkgname=unpaper pkgver=6.1 pkgrel=0 @@ -13,22 +13,11 @@ makedepends="$depends_dev automake autoconf libtool libxslt" install="" 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 -} +builddir="$srcdir/Flameeyes-unpaper-5e7fdc7" build() { - cd "$_builddir" - aclocal && automake --add-missing && autoconf + cd "$builddir" + autoreconf -vif ./configure \ --build=$CBUILD \ --host=$CHOST \ @@ -36,16 +25,17 @@ build() { --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ - --localstatedir=/var \ - || return 1 - make || return 1 + --localstatedir=/var + make } package() { - cd "$_builddir" - make DESTDIR="$pkgdir" install || return 1 + cd "$builddir" + make DESTDIR="$pkgdir" install +} + +check() { + "$builddir"/unpaper --help > /dev/null } -md5sums="ade1513be12ffc73063db0b375017ca7 unpaper-6.1.tar.gz" -sha256sums="9421fa66c8506f12dc0cc4c3814f1b41903420f6afeecd0db50fae49fcdb5740 unpaper-6.1.tar.gz" sha512sums="96e4f5748f836044d47a08b5c61f4367c8497d64b61e588a38b11ae99261a051c2c77e61aef85803dcd904aa8b03d78a5fa1c467bb3e632dbe9dbd68c4719557 unpaper-6.1.tar.gz" |