38 lines
1.5 KiB
Bash
38 lines
1.5 KiB
Bash
|
# Maintainer: Tristelune <tristelune at archlinux dot info>
|
||
|
# Contributor: LeCrayonVert <greenarrow at archlinux dot us>
|
||
|
# Contributor: yugrotavele <yugrotavele at archlinux dot us>
|
||
|
# Contributor: Sven Salzwedel <sven_salzwedel@web.de>
|
||
|
# Contributor: Olaf Leidinger <leidola@newcon.de>
|
||
|
|
||
|
pkgname=gscan2pdf
|
||
|
pkgver=1.8.7
|
||
|
pkgrel=1
|
||
|
pkgdesc='A GUI with OCR capability to produce PDFs or DjVus from scanned documents'
|
||
|
arch=('any')
|
||
|
url='http://gscan2pdf.sourceforge.net/'
|
||
|
license=('GPL')
|
||
|
depends=('imagemagick' 'perl-config-general' 'perl-date-calc' 'perl-goo-canvas' 'perl-gtk2-ex-simple-list' 'perl-gtk2-imageview' 'perl-data-uuid' 'perl-filesys-df' 'perl-html-parser' 'perl-list-moreutils'
|
||
|
'perl-locale-gettext' 'perl-log-log4perl'
|
||
|
'perl-pdf-api2' 'perl-proc-processtable' 'perl-readonly' 'perl-sane' 'perl-set-intspan'
|
||
|
'perl-try-tiny' 'unpaper')
|
||
|
optdepends=('djvulibre' 'gocr' 'ocropy' 'xdg-utils' 'tesseract' 'cuneiform' 'perl-gtk2-ex-podviewer' )
|
||
|
source=("./$pkgname-$pkgver.tar.xz")
|
||
|
sha512sums=('990338c9dd9bdd5685a40792803b3077e27296c5a3363471e55d3297a815e1c344bc94e3430981764531fb02380d7d7b1c253dda5e9e65e86e632ae8371ca72d')
|
||
|
|
||
|
build() {
|
||
|
cd ${srcdir}/${pkgname}-${pkgver}
|
||
|
unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
|
||
|
export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps
|
||
|
/usr/bin/perl Makefile.PL
|
||
|
make
|
||
|
}
|
||
|
|
||
|
package() {
|
||
|
cd ${srcdir}/${pkgname}-${pkgver}
|
||
|
unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
|
||
|
make install INSTALLDIRS=vendor DESTDIR="$pkgdir"
|
||
|
|
||
|
# Standard perl cleaning
|
||
|
/usr/bin/find ${pkgdir} -name '.packlist' -o -name 'perllocal.pod' -delete
|
||
|
}
|