# Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=biber pkgver=2.8 pkgrel=1 pkgdesc="Backend processor for BibLaTeX" url="https://github.com/plk/biber" arch="noarch" license="GPL2" depends="perl perl-module-build perl-config-autoconf perl-extutils-libbuilder perl-test-differences perl-file-which perl-class-accessor perl-data-compare perl-data-dump perl-data-uniqid perl-ipc-run3 perl-xml-writer perl-xml-libxml perl-xml-libxslt perl-lwp-protocol-https perl-log-log4perl perl-list-allutils perl-list-moreutils perl-mozilla-ca perl-regexp-common perl-file-slurp perl-encode-hanextra perl-date-simple perl-xml-libxml-simple perl-autovivification perl-unicode-normalize perl-unicode-linebreak perl-unicode-collate perl-text-roman perl-text-bibtex perl-lingua-translit perl-encode-jis2k perl-encode-eucjpascii perl-business-isbn perl-business-ismn perl-business-issn perl-datetime-calendar-julian perl-datetime-format-builder perl-sort-key perl-text-csv perl-text-csv_xs perl-list-moreutils-xs perl-perlio-utf8_strict perl-file-slurper" makedepends="perl-dev" subpackages="$pkgname-doc" source="$pkgname-$pkgver.tar.gz::https://github.com/plk/biber/archive/v${pkgver}.tar.gz " builddir="$srcdir/$pkgname-$pkgver" prepare() { cd "$builddir" # Disable long year tests on 32 bit if [ $CARCH = "x86" ]; then sed -i '/17000002/ s+.*+eq_or_diff("dummy", "dummy", "skip 32 bit");+' t/dateformats.t fi perl Build.PL installdirs=vendor } build() { cd "$builddir" export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` ./Build } check() { cd "$builddir" ./Build test } package() { cd "$builddir" ./Build install destdir="$pkgdir" find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } sha512sums="8b329a315e4471785551a350bc7b89344084797aa61f783868a64e4966d2624021820f3984d87b75e929e4bebfbd23a82844b4a52f4b323295c24f8e642ed39c biber-2.8.tar.gz"