You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tde-packaging/arch/tde-deps/perl-text-bibtex/PKGBUILD

47 lines
1.3 KiB

# 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"
}