1 # Maintainer: Rémy Oudompheng <remy@archlinux.org>
3 pkgname=texlive-science
7 pkgdesc="TeX Live - Typesetting for mathematics, natural and computer sciences"
10 depends=('texlive-core')
12 'texlive-latexextra: required for algorithm2e package'
14 groups=('texlive-most')
15 url='http://tug.org/texlive/'
16 source=("https://sources.archlinux.org/other/texlive/$pkgname-$pkgver-src.zip"
19 options=('!emptydirs')
20 sha256sums=('3e420b34fbc22c54cbbaeed1c377bbb80360cb162f1464547321114a08f214a3'
21 '1d9151c9cabc3521b4406731b0147d80e0bf600bdedaf55a1a49b8775165daa8'
22 '1cbd5339f8cfa32214a749a408cf7136fd5acffaffcde6500a337d332c70c5c3')
29 rm -rf {tlpkg,doc,source} || true
34 install -m755 -d "$pkgdir"/var/lib/texmf/arch/installedpkgs
35 sed -i '/^#/d' CONTENTS
36 install -m644 CONTENTS "$pkgdir"/var/lib/texmf/arch/installedpkgs/${pkgname}_${_revnr}.pkgs
37 install -m644 $pkgname.maps "$pkgdir"/var/lib/texmf/arch/installedpkgs/
38 install -m644 $pkgname.fmts "$pkgdir"/var/lib/texmf/arch/installedpkgs/
39 install -m755 -d "$pkgdir"/usr/share
40 wanteddirs=$(for d in *; do test -d $d && [[ $d != texmf* ]] && echo $d; done) || true
41 for dir in $wanteddirs; do
42 find $dir -type d -exec install -d -m755 "$pkgdir"/usr/share/texmf-dist/'{}' \;
43 find $dir -type f -exec install -m644 '{}' "$pkgdir"/usr/share/texmf-dist/'{}' \;
45 if [[ -d texmf-dist ]]; then
46 find texmf-dist -type d -exec install -d -m755 "$pkgdir"/usr/share/'{}' \;
47 find texmf-dist -type f -exec install -m644 '{}' "$pkgdir"/usr/share/'{}' \;
49 if [[ -d "$pkgdir"/usr/share/texmf-dist/scripts ]]; then
50 find "$pkgdir"/usr/share/texmf-dist/scripts -type f -exec chmod a+x '{}' \;
52 install -m755 -d "$pkgdir"/usr/bin
53 ln -s /usr/share/texmf-dist/scripts/ulqda/ulqda.pl "$pkgdir"/usr/bin/ulqda