summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pcr/perl-latex-encode/PKGBUILD53
1 files changed, 37 insertions, 16 deletions
diff --git a/pcr/perl-latex-encode/PKGBUILD b/pcr/perl-latex-encode/PKGBUILD
index c37611692..1dd943c3f 100644
--- a/pcr/perl-latex-encode/PKGBUILD
+++ b/pcr/perl-latex-encode/PKGBUILD
@@ -1,29 +1,50 @@
-# Maintainer (Arch): Moritz Bunkus <moritz@bunkus.org>
+# Maintainer (AUR): Moritz Bunkus <moritz@bunkus.org>
# Contributor: Márcio Silva <coadde@hyperbola.info>
+# parabola changes and rationale:
+# no changes.
+
pkgname=perl-latex-encode
-pkgver=0.091.6
-pkgrel=2
+pkgver='0.092.0'
+pkgrel='2'
pkgdesc="Encode characters for LaTeX formatting"
arch=(any)
-license=('GPL1')
-url="http://search.cpan.org/~andrewf/LaTeX-Encode"
+license=('PerlArtistic')
+url="http://search.cpan.org/dist/LaTeX-Encode/"
+depends=('perl-html-parser' 'perl-pod-latex' 'perl-readonly')
+makedepends=('perl-carp-always')
options=('!emptydirs')
-source=("http://search.cpan.org/CPAN/authors/id/E/EI/EINHVERFR/LaTeX-Encode-$pkgver.tar.gz")
-md5sums=('7c8bc84f6e512a3f057b03f71793dcf0')
+source=("https://cpan.metacpan.org/authors/id/E/EI/EINHVERFR/LaTeX-Encode-${pkgver}.tar.gz")
+sha512sums=('6e77a3f48d40f47c20cc08c65eaf9a8635b2fa8b6f3ea403dadace85f2b8bc7e2e7a0834b3d55b0f24ab808ed9d2fa36dafdbcf04670e566b51c8f6a3ffdd144')
-build() {
- cd ${srcdir}/LaTeX-Encode-${pkgver}
+prepare_environment() {
+ export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \
+ PERL_AUTOINSTALL=--skipdeps \
+ PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \
+ PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
+ MODULEBUILDRC=/dev/null
+ cd "${srcdir}/LaTeX-Encode-${pkgver}"
+}
- # install module in vendor directories.
- PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+build() {
+ prepare_environment
+ /usr/bin/perl Makefile.PL
make
}
-package() {
- cd ${srcdir}/LaTeX-Encode-${pkgver}
- make install DESTDIR=${pkgdir}
+check() {
+ prepare_environment
+ make test
+}
- # remove perllocal.pod and .packlist
- find ${pkgdir} '(' -name perllocal.pod -o -name .packlist ')' -delete
+package() {
+ prepare_environment
+ make install
+ find "$pkgdir" "(" -name .packlist -o -name perllocal.pod ")" -delete
}
+
+# Local Variables:
+# mode: shell-script
+# sh-basic-offset: 2
+# End:
+# vim:set ts=2 sw=2 et: