aboutsummaryrefslogblamecommitdiffstats
path: root/community/pdfgrep/APKBUILD
blob: b8de6666242a8f26016a3db6240d6c25cc69c9eb (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
                                                              

                                                    
               
            
        




                                                                  
                              


                                                 

                                                                
                                    


                                   





                                         




                                    
                     


           
                                      

 






                                                                    
                                                                   








                                                           
                                                         

 

                                                                                                                                                                  
# 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.1.2
pkgrel=5
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"
source="https://pdfgrep.org/download/${pkgname}-${pkgver}.tar.gz
	no-locale.patch"
options="!check" # multiple failures
builddir="$srcdir/$pkgname-$pkgver"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make -k check
}

package() {
	make DESTDIR="$pkgdir" install
}

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/
}

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
}

sha512sums="27bc4741e5203b2fd265815a22ad8d702b3455b2ae932641b040fc9ce615bc9ff0abef221eb2ec8aa59c79cb139d31184261d076f9731177129a473d62aa4e5c  pdfgrep-2.1.2.tar.gz
0908a622202e7955d529befbbb87e2c521693e150bd3911ea459ce0f870ddea737afd0504a60038c3f2c71630fdb92d64e6401ae6e70e756583fb99c18aedb64  no-locale.patch"