[arch-commits] Commit in gscan2pdf/repos (2 files)
Fabio Castelli
muflone at archlinux.org
Sat Oct 12 14:24:40 UTC 2019
Date: Saturday, October 12, 2019 @ 14:24:40
Author: muflone
Revision: 515237
archrelease: copy trunk to community-testing-any
Added:
gscan2pdf/repos/community-testing-any/
gscan2pdf/repos/community-testing-any/PKGBUILD
(from rev 515236, gscan2pdf/trunk/PKGBUILD)
----------+
PKGBUILD | 47 +++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 47 insertions(+)
Copied: gscan2pdf/repos/community-testing-any/PKGBUILD (from rev 515236, gscan2pdf/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD (rev 0)
+++ community-testing-any/PKGBUILD 2019-10-12 14:24:40 UTC (rev 515237)
@@ -0,0 +1,47 @@
+# Maintainer: Muflone http://www.muflone.com/contacts/english/
+# Contributor: 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 at web.de>
+# Contributor: Olaf Leidinger <leidola at newcon.de>
+
+pkgname=gscan2pdf
+pkgver=2.5.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-goocanvas2'
+ 'perl-gtk3-simplelist' '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-image-sane' 'perl-set-intspan'
+ 'perl-try-tiny' 'unpaper')
+optdepends=('djvulibre: DjVu image format'
+ 'gocr: OCR support'
+ 'xdg-utils: email as PDF'
+ 'tesseract: OCR support'
+ 'cuneiform: OCR support')
+source=("https://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.xz")
+sha256sums=('11a26c7070437359d1d7c3b6e3e9009317cd82a8ae96df737a555c8687630974')
+options=('!emptydirs')
+
+build() {
+ cd "${pkgname}-${pkgver}"
+ unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
+ export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps
+ perl Makefile.PL
+ make
+}
+
+package() {
+ cd "${pkgname}-${pkgver}"
+ unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
+ export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps
+ make install INSTALLDIRS=vendor DESTDIR="${pkgdir}"
+ mv "${pkgdir}/usr/bin/vendor_perl/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
+ # Delete unuseful files
+ find "${pkgdir}" -name '.packlist' -delete
+ find "${pkgdir}" -name '*.pod' -delete
+}
More information about the arch-commits
mailing list