summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pcr/biblatex/PKGBUILD40
-rw-r--r--pcr/biblatex/biblatex.install18
2 files changed, 58 insertions, 0 deletions
diff --git a/pcr/biblatex/PKGBUILD b/pcr/biblatex/PKGBUILD
new file mode 100644
index 000000000..28551751e
--- /dev/null
+++ b/pcr/biblatex/PKGBUILD
@@ -0,0 +1,40 @@
+# Maintainer: asm <asm@member.fsf.org>
+
+pkgname=biblatex
+pkgver=3.0
+pkgrel=1
+pkgdesc="LaTeX package which provides full-featured bibliographic facilities"
+arch=('any')
+url="http://biblatex.sourceforge.net/"
+license=('LPPL')
+depends=(
+ 'logreq'
+ 'texlive-core'
+ 'biblatex-biber'
+ 'texlive-latexextra')
+optdepends=('texlive-bin: provides bibitex and bibtex8, the legacy backends')
+conflicts=('texlive-bibtexextra')
+install=${pkgname}.install
+source=("http://sourceforge.net/projects/$pkgname/files/$pkgname-$pkgver/$pkgname-$pkgver.tgz")
+md5sums=('c484aaf451b28bbaf38d6629803db25c')
+sha256sums=('f3cda38555a136404390ebad6fea46b53e5dd5d5a283b795e55c2bcd9ea344c0')
+sha512sums=('acc032995581498fd8ddfb0dea003a8ef7925dfa5cbfdf290f75a90e1109461e749ae1916ff69521db1ed7bcb542cceb1dda8ec10ccd08a8dec17d89015e7053')
+
+package() {
+ texmflocal=/usr/share/texmf-dist/tex/
+
+ mkdir -p ${pkgdir}/${texmflocal}
+ mkdir -p ${pkgdir}/${texmflocal}/bibtex/bst/biblatex/
+ mkdir -p ${pkgdir}/${texmflocal}/bibtex/csf/biblatex/ #optional for bibtex8
+
+ cp -r latex/* ${pkgdir}/${texmflocal}
+ cp -r bibtex/bst/* ${pkgdir}/${texmflocal}/bibtex/bst/biblatex/
+ cp -r bibtex/csf/* ${pkgdir}/${texmflocal}/bibtex/csf/biblatex/ #optional for bibtex8
+
+
+ # Install docs
+ mkdir -p ${pkgdir}/${texmflocal}/doc/latex/biblatex/
+
+ cp -r doc/* ${pkgdir}/${texmflocal}/doc/latex/biblatex/
+}
+
diff --git a/pcr/biblatex/biblatex.install b/pcr/biblatex/biblatex.install
new file mode 100644
index 000000000..e4a2a69a1
--- /dev/null
+++ b/pcr/biblatex/biblatex.install
@@ -0,0 +1,18 @@
+post_install() {
+ echo ">>> texlive: updating the filename database..."
+ /usr/bin/mktexlsr
+ echo ">>> Remember that biblatex 3.0 should be used with"
+ echo ">>> * etoolbox >=2.1"
+ echo ">>> * logreq >=1.0"
+ echo ">>> * bibtex, bibtex8 or biber"
+ echo ">>> Biber is strongly recommended. BibTeX and bibTeX8 are legacies."
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ echo ">>> texlive: updating the filename database..."
+ /usr/bin/mktexlsr
+}