Commit 7519612f authored by Francesco Colista's avatar Francesco Colista

community/biber: re-enabled test, minor APKBUILD changed according with the linter

parent 3e7ede6b
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
pkgname=biber pkgname=biber
# This version should be compatible with Biblatex in testing # This version should be compatible with Biblatex in testing
pkgver=2.14 pkgver=2.14
pkgrel=1 pkgrel=2
pkgdesc="Backend processor for BibLaTeX" pkgdesc="Backend processor for BibLaTeX"
url="https://github.com/plk/biber" url="https://github.com/plk/biber"
arch="noarch" arch="noarch"
...@@ -21,22 +21,19 @@ depends="perl perl-module-build perl-config-autoconf ...@@ -21,22 +21,19 @@ depends="perl perl-module-build perl-config-autoconf
perl-datetime-calendar-julian perl-datetime-format-builder perl-sort-key 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 perl-text-csv perl-text-csv_xs perl-list-moreutils-xs perl-perlio-utf8_strict perl-file-slurper
perl-parse-recdescent perl-io-string perl-mime-charset perl-namespace-autoclean" perl-parse-recdescent perl-io-string perl-mime-charset perl-namespace-autoclean"
options="!check" # some of the test fails
checkdepends="perl-test-simple" checkdepends="perl-test-simple"
makedepends="perl-dev" makedepends="perl-dev"
subpackages="$pkgname-doc" subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/plk/biber/archive/v${pkgver}.tar.gz" source="$pkgname-$pkgver.tar.gz::https://github.com/plk/biber/archive/v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"
prepare() { prepare() {
default_prepare default_prepare
cd "$builddir"
# Disable long year tests on 32 bit # Disable long year tests on 32 bit
case "$CARCH" in arm*|mips|mipsel*|x86) case "$CARCH" in arm*|mips|mipsel*|x86)
sed -i '/17000002/ s+.*+eq_or_diff("dummy", "dummy", "skip 32 bit");+' t/dateformats.t sed -i '/17000002/ s+.*+eq_or_diff("dummy", "dummy", "skip 32 bit");+' t/dateformats.t
;; ;;
esac esac
case "$CARCH" in arm*|x86) case "$CARCH" in arm*|x86)
sed -i -e '7s/47/41/' t/dateformats.t sed -i -e '7s/47/41/' t/dateformats.t
sed -i -e '882s/.*/#&/' t/dateformats.t sed -i -e '882s/.*/#&/' t/dateformats.t
...@@ -51,18 +48,15 @@ prepare() { ...@@ -51,18 +48,15 @@ prepare() {
} }
build() { build() {
cd "$builddir" export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
./Build ./Build
} }
#check() { check() {
# cd "$builddir" ./Build test
# ./Build test }
#}
package() { package() {
cd "$builddir"
./Build install destdir="$pkgdir" ./Build install destdir="$pkgdir"
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment