blob: a467a187c19f8abddee96d7acffdbdbce7c2c371 (
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=biber
# This version should be compatible with Biblatex in testing
pkgver=2.12
pkgrel=1
pkgdesc="Backend processor for BibLaTeX"
url="https://github.com/plk/biber"
arch="noarch"
license="GPL-2.0"
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"
checkdepends="perl-test-simple"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/plk/biber/archive/v${pkgver}.tar.gz
fix-sortinithash-unicode-collate.patch"
builddir="$srcdir/$pkgname-$pkgver"
prepare() {
default_prepare
cd "$builddir"
# Disable long year tests on 32 bit
case "$CARCH" in arm*|mips|mipsel*|x86)
sed -i '/17000002/ s+.*+eq_or_diff("dummy", "dummy", "skip 32 bit");+' t/dateformats.t
;;
esac
case "$CARCH" in arm*|x86)
sed -i -e '7s/47/41/' t/dateformats.t
sed -i -e '882s/.*/#&/' t/dateformats.t
sed -i -e '883s/.*/#&/' t/dateformats.t
sed -i -e '884s/.*/#&/' t/dateformats.t
sed -i -e '885s/.*/#&/' t/dateformats.t
sed -i -e '888s/.*/#&/' t/dateformats.t
sed -i -e '889s/.*/#&/' t/dateformats.t
;;
esac
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="72f1a05224dc2735b32e92ac376d392fb631bf788a15de449471fdc5a94182ad4434ce71f95281e4cfc3a06cd275d2ff98e526d540c2979cd3e0dfa15b5c75ff biber-2.12.tar.gz
fb09766b549605868bc972d4cce30748c1364cb8780fd97f2c000d8148197877642d9b7546e8e88837b95ec2fb80b4dcd9567500d12016b92c8254504387ada2 fix-sortinithash-unicode-collate.patch"
|