1 # Contributor: Firmicus <firmicus āt gmx dōt net>
2 # Maintainer: Rémy Oudompheng <remy@archlinux.org>
4 pkgname=texlive-bibtexextra
8 pkgdesc="TeX Live - Additional BibTeX styles and bibliography databases"
11 depends=('texlive-core')
12 groups=('texlive-most')
13 url='https://tug.org/texlive/'
14 source=("https://sources.archlinux.org/other/texlive/$pkgname-$pkgver-src.zip")
15 sha256sums=('b2b0b90abb0c0a9eef5366cf0968f7e58ee84c1be688c36d751dd0577c872a3c')
22 rm -rf {tlpkg,doc,source} || true
26 install -m755 -d "$pkgdir"/var/lib/texmf/arch/installedpkgs
27 sed -i '/^#/d' CONTENTS
28 install -m644 CONTENTS "$pkgdir"/var/lib/texmf/arch/installedpkgs/${pkgname}_${_revnr}.pkgs
29 install -m755 -d "$pkgdir"/usr/share
30 wanteddirs=$(for d in *; do test -d $d && [[ $d != texmf* ]] && echo $d; done) || true
31 for dir in $wanteddirs; do
32 find $dir -type d -exec install -d -m755 "$pkgdir"/usr/share/texmf-dist/'{}' \;
33 find $dir -type f -exec install -m644 '{}' "$pkgdir"/usr/share/texmf-dist/'{}' \;
35 if [[ -d texmf-dist ]]; then
36 find texmf-dist -type d -exec install -d -m755 "$pkgdir"/usr/share/'{}' \;
37 find texmf-dist -type f -exec install -m644 '{}' "$pkgdir"/usr/share/'{}' \;
39 if [[ -d "$pkgdir"/usr/share/texmf-dist/scripts ]]; then
40 find "$pkgdir"/usr/share/texmf-dist/scripts -type f -exec chmod a+x '{}' \;
43 # link programs from /usr/share/texmf-dist/scripts
46 bib2gls/convertgls2bib.sh
48 bibexport/bibexport.sh
49 citation-style-language/citeproc-lua.lua
50 crossrefware/bbl2bib.pl
51 crossrefware/bibdoiadd.pl
52 crossrefware/bibmradd.pl
53 crossrefware/biburl2doi.pl
54 crossrefware/bibzbladd.pl
55 crossrefware/ltx2crossrefxml.pl
57 multibibliography/multibibliography.pl
60 install -m755 -d "$pkgdir"/usr/bin
61 for _script in ${_linked_scripts}; do
62 _scriptbase=$(basename $_script)
63 _scriptbase=${_scriptbase%.*}
64 ln -s /usr/share/texmf-dist/scripts/${_script} "${pkgdir}/usr/bin/${_scriptbase}"