updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / latex-template-springer / PKGBUILD
blob72a451d9eb819b577c7dbd4b96cc8c7e0b0a2e13
1 # Contributor: Olivier Mehani <shtrom-aur@ssji.net>
2 # Contributor: florianbw <florian.bw@gmail.com>
3 # $Id: PKGBUILD 308 2011-11-09 21:44:30Z shtrom $
4 # vim:set ts=2 sw=2 et:
6 pkgname=latex-template-springer
7 pkgver=201111
8 pkgrel=1
9 pkgdesc="Springer templates for LNCS proceedings (llncs), monographs (svmono), multiauthor volumes (svmult) and journals (svjour3)"
10 arch=('any')
11 url="http://www.springer.com/computer/lncs?SGWID=0-164-7-72376-0"
12 license=('')
13 groups=()
14 depends=('texlive-latex3')
15 makedepends=('unzip')
16 optdepends=()
17 provides=(latex-template-lncs)
18 conflicts=(latex-template-lncs)
19 replaces=(latex-template-lncs)
20 backup=()
21 options=()
22 install=texlive.install
23 source=(ftp://ftp.springer.de/pub/tex/latex/llncs/latex2e/llncs2e.zip
24 http://www.springer.com/cda/content/document/cda_downloaddocument/svmult.zip
25 http://www.springer.com/cda/content/document/cda_downloaddocument/svmono.zip
26 ftp://ftp.springer.de/pub/tex/latex/svjour3/global.zip)
28 build() {
29   for _SVJOUR3 in readme.txt svjour3.cls usrguid3.pdf svglov3.clo template.tex; do
30     install -m 0644 -D ${srcdir}/${_SVJOUR3} ${pkgdir}/usr/share/texmf-dist/tex/latex/svjour3/${_SVJOUR3}
31   done
33   for _SVMONO in instruct.pdf quickstart.pdf refguide.pdf styles/* templates/*; do
34     [[ ${_SVMONO} == *"/*" ]] && install -m 755 -d ${pkgdir}/usr/share/texmf-dist/tex/latex/svmono/${_SVMONO#/*}
35     install -m 0644 -D ${srcdir}/${_SVMONO} ${pkgdir}/usr/share/texmf-dist/tex/latex/svmono/${_SVMONO%\*}
36   done
38   for _SVMULT in instruct.pdf quickstart.pdf refguide.pdf styles/* templates/*; do
39     [[ ${_SVMULT} == *"/*" ]] && install -m 755 -d ${pkgdir}/usr/share/texmf-dist/tex/latex/svmult/${_SVMULT#/*}
40     install -m 0644 -D ${srcdir}/${_SVMULT} ${pkgdir}/usr/share/texmf-dist/tex/latex/svmult/${_SVMULT%\*}
41   done
44   for _LLNCS in readme.txt llncs.cls llncs.dem llncs.doc llncsdoc.pdf llncsdoc.sty llncs.ind subjidx.ind sprmindx.sty; do
45     install -m 0644 -D ${srcdir}/${_LLNCS} ${pkgdir}/usr/share/texmf-dist/tex/latex/llncs/${_LLNCS}
46   done
48   install -m 0644 -D ${srcdir}/spphys.bst ${pkgdir}/usr/share/texmf-dist/bibtex/bst/springer/spphys.bst
49   install -m 0644 -D ${srcdir}/splncs03.bst ${pkgdir}/usr/share/texmf-dist/bibtex/bst/springer/splncs03.bst
50   # XXX: BSTs have disappeared from the latest version of svmono... Go figure...
51   #mv ${pkgdir}/usr/share/texmf-dist/tex/latex/svmono/*.bst \
52   # ${pkgdir}/usr/share/texmf-dist/bibtex/bst/springer/
55 md5sums=('d534148be975055ec332f4cdcd1087d5'
56          '9d5bf25a905806ed4297138062afaf71'
57          'dd75af3f4bc865cd0e33b20d186699a8'
58          'c020d70fa6ce887d9a3b70d72c518c85')