summaryrefslogtreecommitdiffstats
path: root/arch/tde-deps/perl-text-bibtex/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'arch/tde-deps/perl-text-bibtex/PKGBUILD')
-rw-r--r--arch/tde-deps/perl-text-bibtex/PKGBUILD46
1 files changed, 46 insertions, 0 deletions
diff --git a/arch/tde-deps/perl-text-bibtex/PKGBUILD b/arch/tde-deps/perl-text-bibtex/PKGBUILD
new file mode 100644
index 000000000..203b53875
--- /dev/null
+++ b/arch/tde-deps/perl-text-bibtex/PKGBUILD
@@ -0,0 +1,46 @@
+# Maintainer: Rémy Oudompheng <remy@archlinux.org>
+
+pkgname=perl-text-bibtex
+_dist=Text-BibTeX
+pkgver=0.89
+pkgrel=1
+pkgdesc="Perl interface to read and parse BibTeX files"
+arch=('powerpc64le')
+url="https://metacpan.org/release/${_dist}"
+license=('PerlArtistic' 'GPL')
+depends=('perl')
+makedepends=('perl-module-build'
+ 'perl-config-autoconf'
+ 'perl-extutils-libbuilder')
+options=('!emptydirs')
+source=(https://search.cpan.org/CPAN/authors/id/A/AM/AMBS/${_dist}-${pkgver}.tar.gz)
+# Checksums from http://search.cpan.org/CPAN/authors/id/A/AM/AMBS/CHECKSUMS
+md5sums=('67fa6d9c03c659627d9fd58bb380c1fe')
+sha256sums=('88a78ebf088ec7502f401c5a2b138c862cf5458534b773223bbf3aaf41224196')
+
+prepare() {
+ cd "${srcdir}/${_dist}-${pkgver}"
+ # Don't install to /usr/lib64
+ sed -i s,lib64,lib,g Build.PL
+}
+
+build() {
+ cd "${srcdir}/${_dist}-${pkgver}"
+ unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
+ export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps
+ perl Build.PL
+ ./Build
+}
+
+check() {
+ cd "${srcdir}/${_dist}-${pkgver}"
+ unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
+ export PERL_MM_USE_DEFAULT=1
+ ./Build test
+}
+
+package() {
+ cd "${srcdir}/${_dist}-${pkgver}"
+ unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
+ ./Build install installdirs=vendor destdir="$pkgdir"
+}