summaryrefslogtreecommitdiff
path: root/pcr/biblatex-biber/PKGBUILD
blob: 99c98a44404cd2fb9e3f00554dc0ab3c7e5bcc9b (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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# Maintainer (Arch): Andreas dot Wagner at em dot uni-frankfurt dot de
# Contributor: Márcio Silva <coadde@parabola.nu>
# Contributor: asm <asm@member.fsf.org>

pkgname=biblatex-biber
pkgver=2.3
pkgrel=1
pkgdesc="A BibTeX replacement for users of biblatex"
url="http://biblatex-biber.sourceforge.net"
arch=('any')
license=('GPL1')
depends=(
  'perl-autovivification'
  'perl-business-isbn'
  'perl-business-ismn'
  'perl-business-issn'
  'perl-data-compare'
  'perl-data-dump'
  'perl-date-simple'
  'perl-encode-eucjpascii'
  'perl-encode-hanextra'
  'perl-encode-jis2k'
  'perl-file-slurp-tiny'
  'perl-ipc-run3'
  'perl-libwww'
  'perl-list-allutils'
  'perl-list-moreutils'
  'perl-log-log4perl'
  'perl-lwp-protocol-https'
  'perl-mozilla-ca>=20141217'
  'perl-regexp-common'
  'perl-text-bibtex>=0.70'
  'perl-text-roman'
  'perl-unicode-collate>=1.04'
  'perl-unicode-normalize<=1.18'
  'perl-unicode-gcstring'
  'perl-uri'
  'perl-xml-libxml-simple'
  'perl-xml-libxslt'
  'perl-xml-writer'
)

#  'perl-config-general'
#  'perl-data-diver'
#  'perl-file-slurp-unicode'
#  'perl-readonly'
#  'perl-xml-writer-string'
#  'texlive-bibtexextra'

makedepends=(
  'perl-module-build>=0.38' # Module::Build will be removed from the Perl core distribution in the next major release
  'perl-config-autoconf>=0.15'
  'perl-extutils-libbuilder>=0.02'
)

checkdepends=(
  'perl-file-which'
##  'perl-test-differences'
  'perl-test-pod'
  'perl-test-pod-coverage'
)

#optdepends=('perl-sleepycat-dbxml: support for Berkeley DBXML databases'
#	    'perl-readonly-xs: recommended for speeding up perl-readonly stuff')

conflicts=('biblatex-biber-git')
install=$pkgname.install
source=(http://downloads.sf.net/project/$pkgname/$pkgname/$pkgver/$pkgname.tar.gz)

build() {
  cd "${pkgname}-${pkgver}"
  perl Build.PL installdirs=site destdir="$pkgdir/"
  perl Build
}

check() {
  cd "${pkgname}-${pkgver}"
#  perl Build test
}

package() {
  cd "${pkgname}-${pkgver}"
  perl Build install

  mkdir -p "$pkgdir/usr/local/bin"
  mv "$pkgdir/usr/bin/site_perl/biber" "$pkgdir/usr/local/bin/biber"
  rm -rf "$pkgdir/usr/bin"

  # remove perllocal.pod and .packlist
  find "$pkgdir" -name perllocal.pod -delete
  find "$pkgdir" -name .packlist -delete
}

md5sums=('8bcfcc5c66a357521a2977c699a8c289')