2 # Maintainer: Rémy Oudompheng <remy@archlinux.org>
4 pkgname=perl-text-bibtex
8 pkgdesc="Perl interface to read and parse BibTeX files"
10 url="https://metacpan.org/release/${_dist}"
11 license=('PerlArtistic' 'GPL')
13 makedepends=('perl-module-build'
14 'perl-config-autoconf'
15 'perl-extutils-libbuilder')
16 options=('!emptydirs')
17 source=(https://search.cpan.org/CPAN/authors/id/A/AM/AMBS/${_dist}-${pkgver}.tar.gz)
18 # Checksums from http://search.cpan.org/CPAN/authors/id/A/AM/AMBS/CHECKSUMS
19 md5sums=('361aad5cf400764e35d1ade3b609bb60')
20 sha256sums=('b014586e68bdbcafb0a2cfa0401eb0a04ea5de8c4d5bc36dd0f7faeab6acf42c')
23 cd "${srcdir}/${_dist}-${pkgver}"
24 # Don't install to /usr/lib64
25 sed -i s,lib64,lib,g Build.PL
29 cd "${srcdir}/${_dist}-${pkgver}"
30 unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
31 export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps
37 cd "${srcdir}/${_dist}-${pkgver}"
38 unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
39 export PERL_MM_USE_DEFAULT=1
44 cd "${srcdir}/${_dist}-${pkgver}"
45 unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
46 ./Build install installdirs=vendor destdir="$pkgdir"