archrelease: copy trunk to extra-x86_64
[arch-packages.git] / perl-text-bibtex / repos / extra-x86_64 / PKGBUILD
blob1eb36d94e150a2ab841c574b41a8f2b0d340083d
1 # Maintainer: Rémy Oudompheng <remy@archlinux.org>
3 pkgname=perl-text-bibtex
4 _dist=Text-BibTeX
5 pkgver=0.89
6 pkgrel=1
7 pkgdesc="Perl interface to read and parse BibTeX files"
8 arch=('x86_64')
9 url="https://metacpan.org/release/${_dist}"
10 license=('PerlArtistic' 'GPL')
11 depends=('perl')
12 makedepends=('perl-module-build'
13              'perl-config-autoconf'
14              'perl-extutils-libbuilder')
15 options=('!emptydirs')
16 source=(https://search.cpan.org/CPAN/authors/id/A/AM/AMBS/${_dist}-${pkgver}.tar.gz)
17 # Checksums from http://search.cpan.org/CPAN/authors/id/A/AM/AMBS/CHECKSUMS
18 md5sums=('67fa6d9c03c659627d9fd58bb380c1fe')
19 sha256sums=('88a78ebf088ec7502f401c5a2b138c862cf5458534b773223bbf3aaf41224196')
21 prepare() {
22     cd "${srcdir}/${_dist}-${pkgver}"
23     # Don't install to /usr/lib64
24     sed -i s,lib64,lib,g Build.PL
27 build() {
28     cd "${srcdir}/${_dist}-${pkgver}"
29     unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
30     export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps
31     perl Build.PL
32     ./Build
35 check() {
36     cd "${srcdir}/${_dist}-${pkgver}"
37     unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
38     export PERL_MM_USE_DEFAULT=1
39     ./Build test
42 package() {
43     cd "${srcdir}/${_dist}-${pkgver}"
44     unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
45     ./Build install installdirs=vendor destdir="$pkgdir"