# Template file for 'biber'
pkgname=biber
version=2.22
revision=1
build_style=perl-ModuleBuild
hostmakedepends="perl-Module-Build"
makedepends="perl-ExtUtils-LibBuilder"
depends="perl-autovivification
	perl-Business-ISBN
	perl-Business-ISMN
	perl-Business-ISSN
	perl-Class-Accessor
	perl-Data-Compare
	perl-Data-Dump
	perl-Data-Uniqid
	perl-Date-Simple
	perl-DateTime-Calendar-Julian
	perl-DateTime-Format-Builder
	perl-Encode-EUCJPASCII
	perl-Encode-HanExtra
	perl-Encode-JIS2K
	perl-ExtUtils-LibBuilder
	perl-File-Slurper
	perl-IO-String
	perl-IPC-Run3
	perl-Lingua-Translit
	perl-List-AllUtils
	perl-List-MoreUtils
	perl-List-MoreUtils-XS
	perl-Log-Log4perl
	perl-LWP-Protocol-https
	perl-MIME-Charset
	perl-Mozilla-CA
	perl-namespace-autoclean
	perl-Parse-RecDescent
	perl-PerlIO-utf8-strict
	perl-Regexp-Common
	perl-Sort-Key
	perl-Text-BibTeX
	perl-Text-CSV
	perl-Text-CSV_XS
	perl-Text-Roman
	perl-Unicode-LineBreak
	perl-URI
	perl-XML-LibXML
	perl-XML-LibXML-Simple
	perl-XML-LibXSLT
	perl-XML-Writer"
checkdepends="${depends} perl-File-Which perl-Test-Most"
short_desc="BibTeX replacement for users of biblatex, with full Unicode support"
maintainer="Orphaned <orphan@voidlinux.org>"
license="Artistic-2.0"
homepage="http://biblatex-biber.sourceforge.net"
changelog="https://raw.githubusercontent.com/plk/biber/dev/Changes"
distfiles="https://github.com/plk/biber/archive/refs/tags/v${version}.tar.gz"
checksum=82adcff9e71b4fc02ad6132f9ccd79137ad390e4d3392c7f681a85246c0cdc01

pre_check() {
	# failure is harmless since reference data for tests assume 64-bit
	if [ "${XBPS_TARGET_WORDSIZE}" == 32 ]; then
		rm t/dateformats.t
	fi
}
