aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndré Klitzing <aklitzing@gmail.com>2018-05-01 15:29:41 +0200
committerFrancesco Colista <fcolista@alpinelinux.org>2018-05-08 07:12:08 +0000
commitcc6750fc0ea9f94a85d85686da5a126856b37152 (patch)
treef55d38b508c3dff4cf355e90657cf5e1aeb7be23
parent312610446c243859a910572e88a7f40a7bfb3642 (diff)
downloadaports-cc6750fc0ea9f94a85d85686da5a126856b37152.tar.bz2
aports-cc6750fc0ea9f94a85d85686da5a126856b37152.tar.xz
community/pdfgrep: upgrade to 2.1.0 and modernize abuild
-rw-r--r--community/pdfgrep/APKBUILD23
1 files changed, 14 insertions, 9 deletions
diff --git a/community/pdfgrep/APKBUILD b/community/pdfgrep/APKBUILD
index b6af4abc1c..935dbf0205 100644
--- a/community/pdfgrep/APKBUILD
+++ b/community/pdfgrep/APKBUILD
@@ -2,13 +2,14 @@
# Contributor: André Klitzing <aklitzing@gmail.com>
# Maintainer: André Klitzing <aklitzing@gmail.com>
pkgname=pdfgrep
-pkgver=2.0.1
-pkgrel=1
+pkgver=2.1.0
+pkgrel=0
pkgdesc="Commandline utility to search text in PDF files"
url="https://pdfgrep.org/"
arch="all"
license="GPL"
makedepends="autoconf automake pcre-dev poppler-dev libgcrypt-dev"
+checkdepends="dejagnu texlive"
subpackages="$pkgname-doc
$pkgname-zsh-completion:zshcomp:noarch
$pkgname-bash-completion:bashcomp:noarch"
@@ -23,14 +24,18 @@ build() {
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
- --localstatedir=/var \
- || return 1
- make || return 1
+ --localstatedir=/var
+ make
+}
+
+check() {
+ cd "$builddir"
+ make -k check
}
package() {
cd "$builddir"
- make DESTDIR="$pkgdir" install || return 1
+ make DESTDIR="$pkgdir" install
}
bashcomp() {
@@ -40,7 +45,7 @@ bashcomp() {
mkdir -p "$subpkgdir"/usr/share/bash-completion/completions/
mv "$pkgdir"/usr/share/bash-completion/completions/* \
- "$subpkgdir"/usr/share/bash-completion/completions/ || return 1
+ "$subpkgdir"/usr/share/bash-completion/completions/
}
zshcomp() {
@@ -50,7 +55,7 @@ zshcomp() {
mkdir -p "$subpkgdir"/usr/share/zsh/site-functions/
mv "$pkgdir"/usr/share/zsh/site-functions/* \
- "$subpkgdir"/usr/share/zsh/site-functions || return 1
+ "$subpkgdir"/usr/share/zsh/site-functions
}
-sha512sums="4285f8cb514975a0040cdd6b82133090e27ba5c2f95ca880dccc3dd4fa3427260a5fc73d807df9124a79fa36ac6ed8c11380cde11e00599ed7134d92c50df4a0 pdfgrep-2.0.1.tar.gz"
+sha512sums="e0861b4be47b40b5856e3cdb0cf7bfec5fbcbb46e89b55d2d4be0313c8673633f540f89c6af6142045b86f14741a7abe679768d3cfcdf4e78993917377ad16f6 pdfgrep-2.1.0.tar.gz"