1 # Maintainer: Rémy Oudompheng <remy@archlinux.org>
3 pkgname=texlive-langchinese
7 pkgdesc="TeX Live - Fonts and macro packages to typeset Chinese texts"
10 depends=('texlive-core')
11 groups=('texlive-lang')
12 url='http://tug.org/texlive/'
13 source=("https://sources.archlinux.org/other/texlive/$pkgname-$pkgver-src.zip" "$pkgname.maps")
14 options=('!emptydirs')
15 sha256sums=('a08c5c2d7a2eaece4d8f68eedeec64eb44b70255c84087df66679f6a59f649a0'
16 'c8cc529153bc1db3b13ef5973a6f36161f89cf05bac695fa2d2eab1a75345195')
27 install -m755 -d "$pkgdir"/var/lib/texmf/arch/installedpkgs
28 sed -i '/^#/d' CONTENTS
29 install -m644 CONTENTS "$pkgdir"/var/lib/texmf/arch/installedpkgs/${pkgname}_${_revnr}.pkgs
30 install -m644 $pkgname.maps "$pkgdir"/var/lib/texmf/arch/installedpkgs/
31 install -m755 -d "$pkgdir"/usr/share
32 wanteddirs=$(for d in *; do test -d $d && [[ $d != texmf* ]] && echo $d; done) || true
33 for dir in $wanteddirs; do
34 find $dir -type d -exec install -d -m755 "$pkgdir"/usr/share/texmf-dist/'{}' \;
35 find $dir -type f -exec install -m644 '{}' "$pkgdir"/usr/share/texmf-dist/'{}' \;
37 if [[ -d texmf-dist ]]; then
38 find texmf-dist -type d -exec install -d -m755 "$pkgdir"/usr/share/'{}' \;
39 find texmf-dist -type f -exec install -m644 '{}' "$pkgdir"/usr/share/'{}' \;
41 if [[ -d "$pkgdir"/usr/share/texmf-dist/scripts ]]; then
42 find "$pkgdir"/usr/share/texmf-dist/scripts -type f -exec chmod a+x '{}' \;