archrelease: copy trunk to extra-x86_64
[arch-packages.git] / perl-text-bibtex / trunk / PKGBUILD
blobcf06c99cc2c413ac123dbab64fab0a72bd66738f
1 # $ID$
2 # Maintainer: Rémy Oudompheng <remy@archlinux.org>
4 pkgname=perl-text-bibtex
5 _dist=Text-BibTeX
6 pkgver=0.88
7 pkgrel=1
8 pkgdesc="Perl interface to read and parse BibTeX files"
9 arch=('x86_64')
10 url="https://metacpan.org/release/${_dist}"
11 license=('PerlArtistic' 'GPL')
12 depends=('perl')
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')
22 prepare() {
23     cd "${srcdir}/${_dist}-${pkgver}"
24     # Don't install to /usr/lib64
25     sed -i s,lib64,lib,g Build.PL
28 build() {
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
32     perl Build.PL
33     ./Build
36 check() {
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
40     ./Build test
43 package() {
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"