1 # Maintainer: Firmicus <firmicus āt gmx dōt net>
2 # Maintainer: Rémy Oudompheng <remy@archlinux.org>
4 pkgname=texlive-langgreek
8 pkgdesc="TeX Live - Fonts and support for typesetting Greek"
11 depends=('texlive-core')
12 groups=('texlive-lang')
13 url='http://tug.org/texlive/'
14 source=("https://sources.archlinux.org/other/texlive/$pkgname-$pkgver-src.zip" "$pkgname.maps")
15 options=('!emptydirs')
16 sha256sums=('fdf44664219be6288278466c927c8f0c8eec42c0a733555c2c56c34f890813a0'
17 '1d808532a77ad46260660e87b74de23403ffdd51ca76d14a406d5719e4e02f26')
24 rm -rf {tlpkg,doc,source} || true
28 install -m755 -d "$pkgdir"/var/lib/texmf/arch/installedpkgs
29 sed -i '/^#/d' CONTENTS
30 install -m644 CONTENTS "$pkgdir"/var/lib/texmf/arch/installedpkgs/${pkgname}_${_revnr}.pkgs
31 install -m644 $pkgname.maps "$pkgdir"/var/lib/texmf/arch/installedpkgs/
32 install -m755 -d "$pkgdir"/usr/share
33 wanteddirs=$(for d in *; do test -d $d && [[ $d != texmf* ]] && echo $d; done) || true
34 for dir in $wanteddirs; do
35 find $dir -type d -exec install -d -m755 "$pkgdir"/usr/share/texmf-dist/'{}' \;
36 find $dir -type f -exec install -m644 '{}' "$pkgdir"/usr/share/texmf-dist/'{}' \;
38 if [[ -d texmf-dist ]]; then
39 find texmf-dist -type d -exec install -d -m755 "$pkgdir"/usr/share/'{}' \;
40 find texmf-dist -type f -exec install -m644 '{}' "$pkgdir"/usr/share/'{}' \;
42 if [[ -d "$pkgdir"/usr/share/texmf-dist/scripts ]]; then
43 find "$pkgdir"/usr/share/texmf-dist/scripts -type f -exec chmod a+x '{}' \;
45 install -m755 -d "$pkgdir"/usr/bin
46 ln -s /usr/share/texmf-dist/scripts/mkgrkindex/mkgrkindex "$pkgdir"/usr/bin/mkgrkindex