diff options
-rw-r--r-- | pcr/biblatex-biber/PKGBUILD | 93 | ||||
-rw-r--r-- | pcr/biblatex-biber/biblatex-biber.install | 23 |
2 files changed, 116 insertions, 0 deletions
diff --git a/pcr/biblatex-biber/PKGBUILD b/pcr/biblatex-biber/PKGBUILD new file mode 100644 index 000000000..ad044a1af --- /dev/null +++ b/pcr/biblatex-biber/PKGBUILD @@ -0,0 +1,93 @@ +# Maintainer (Arch): Andreas dot Wagner at em dot uni-frankfurt dot de +# Contributor : Márcio Silva <coadde@parabola.nu> + +pkgname=biblatex-biber +pkgver=2.0 +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' + '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.14' +# 'perl-unicode-nomalize<=1.17' + '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=('6c0c27e67555f50b83efabae99fcd514') diff --git a/pcr/biblatex-biber/biblatex-biber.install b/pcr/biblatex-biber/biblatex-biber.install new file mode 100644 index 000000000..32d081c99 --- /dev/null +++ b/pcr/biblatex-biber/biblatex-biber.install @@ -0,0 +1,23 @@ +# arg 1: the new package version +post_install() { + echo ">>> Remember that biber 2.0 should be used with biblatex >= 3.0!" + echo ">>> Get it e.g. from" + echo ">>> http://sourceforge.net/projects/biblatex/files/biblatex-3.0/biblatex-3.0.tds.tgz/download" + echo ">>>" + echo ">>> The biber executable provided by this package sits in" + echo ">>> /usr/local/bin,so as not to conflict with the texlive-bin" + echo ">>> package, which provides a biber executable in /usr/bin as well." +} + +# arg 1: the new package version +# arg 2: the old package version +post_upgrade() { + post_install $1 +} + + + +op=$1 +shift + +$op $* |