1 # Maintainer: Firmicus <firmicus āt gmx dōt net>
2 # Maintainer: Rémy Oudompheng <remy@archlinux.org>
4 pkgname=texlive-langextra
8 pkgdesc="TeX Live - Bundle of all extra language support"
11 conflicts=('texlive-langafrican' 'texlive-langarab' 'texlive-langarabic'
12 'texlive-langarmenian' 'texlive-langcroatian' 'texlive-langhebrew'
13 'texlive-langindic' 'texlive-langmongolian' 'texlive-langtibetan'
14 'texlive-langvietnamese')
15 provides=('texlive-langafrican' 'texlive-langarabic' 'texlive-langarmenian'
16 'texlive-langarmenian' 'texlive-langcroatian' 'texlive-langhebrew'
17 'texlive-langindic' 'texlive-langmongolian' 'texlive-langtibetan'
18 'texlive-langvietnamese')
19 depends=('texlive-latexextra')
20 groups=('texlive-lang')
21 url='http://tug.org/texlive/'
22 source=("https://sources.archlinux.org/other/texlive/$pkgname-$pkgver-src.zip" "$pkgname.maps")
23 options=('!emptydirs')
24 sha256sums=('3b4b6b09a67a33f2a327021ba39e32e746b9be602037c1f50f7e4ab64605bd47'
25 '5f7941ded76d37cf8d6d644edfb206345557905fee38e18ada0b3b98f8a8c0f7')
32 rm -rf {tlpkg,doc,source} || true
37 install -m755 -d "$pkgdir"/var/lib/texmf/arch/installedpkgs
38 sed -i '/^#/d' CONTENTS
39 install -m644 CONTENTS "$pkgdir"/var/lib/texmf/arch/installedpkgs/${pkgname}_${_revnr}.pkgs
40 install -m644 $pkgname.maps "$pkgdir"/var/lib/texmf/arch/installedpkgs/
41 install -m755 -d "$pkgdir"/usr/share
42 wanteddirs=$(for d in *; do test -d $d && [[ $d != texmf* ]] && echo $d; done) || true
43 for dir in $wanteddirs; do
44 find $dir -type d -exec install -d -m755 "$pkgdir"/usr/share/texmf-dist/'{}' \;
45 find $dir -type f -exec install -m644 '{}' "$pkgdir"/usr/share/texmf-dist/'{}' \;
47 if [[ -d texmf-dist ]]; then
48 find texmf-dist -type d -exec install -d -m755 "$pkgdir"/usr/share/'{}' \;
49 find texmf-dist -type f -exec install -m644 '{}' "$pkgdir"/usr/share/'{}' \;
51 if [[ -d "$pkgdir"/usr/share/texmf-dist/scripts ]]; then
52 find "$pkgdir"/usr/share/texmf-dist/scripts -type f -exec chmod a+x '{}' \;
54 #remove parts of ethiop that depend on Omega:
55 rm -rf "$pkgdir"/usr/share/texmf-dist/fonts/{ofm,ovf,ovp}
56 rm -rf "$pkgdir"/usr/share/texmf-dist/omega