diff options
author | André Klitzing <aklitzing@gmail.com> | 2017-04-13 19:11:50 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-04-14 19:13:56 +0000 |
commit | a5fb09fe028f837c01a293d49cf3372217980c5d (patch) | |
tree | 48cfdc696525c2aafd10f1ab2b652e5a31480a91 /community/pdfgrep | |
parent | fccd0b6cad91ae2b3a58e15e1c0a3f26411f761a (diff) | |
download | aports-a5fb09fe028f837c01a293d49cf3372217980c5d.tar.bz2 aports-a5fb09fe028f837c01a293d49cf3372217980c5d.tar.xz |
testing/pdfgrep: move to community
Diffstat (limited to 'community/pdfgrep')
-rw-r--r-- | community/pdfgrep/APKBUILD | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/community/pdfgrep/APKBUILD b/community/pdfgrep/APKBUILD new file mode 100644 index 0000000000..4df7c1ab8a --- /dev/null +++ b/community/pdfgrep/APKBUILD @@ -0,0 +1,56 @@ +# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net> +# Contributor: André Klitzing <aklitzing@gmail.com> +# Maintainer: André Klitzing <aklitzing@gmail.com> +pkgname=pdfgrep +pkgver=2.0.1 +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" +subpackages="$pkgname-doc + $pkgname-zsh-completion:zshcomp:noarch + $pkgname-bash-completion:bashcomp:noarch" +source="https://pdfgrep.org/download/${pkgname}-${pkgver}.tar.gz" +builddir="$srcdir/$pkgname-$pkgver" + +build() { + cd "$builddir" + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --localstatedir=/var \ + || return 1 + make || return 1 +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install || return 1 +} + +bashcomp() { + depends="" + pkgdesc="Bash completions for $pkgname" + install_if="$pkgname=$pkgver-r$pkgrel bash-completion" + + mkdir -p "$subpkgdir"/usr/share/bash-completion/completions/ + mv "$pkgdir"/usr/share/bash-completion/completions/* \ + "$subpkgdir"/usr/share/bash-completion/completions/ || return 1 +} + +zshcomp() { + depends="" + pkgdesc="Zsh completions for $pkgname" + install_if="$pkgname=$pkgver-r$pkgrel zsh" + + mkdir -p "$subpkgdir"/usr/share/zsh/site-functions/ + mv "$pkgdir"/usr/share/zsh/site-functions/* \ + "$subpkgdir"/usr/share/zsh/site-functions || return 1 +} + +sha512sums="4285f8cb514975a0040cdd6b82133090e27ba5c2f95ca880dccc3dd4fa3427260a5fc73d807df9124a79fa36ac6ed8c11380cde11e00599ed7134d92c50df4a0 pdfgrep-2.0.1.tar.gz" |