blob: 203b53875bf998bb18830970f4ce4c5e4d96b9f7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# Maintainer: Rémy Oudompheng <[email protected]>
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"
}
|