1 # Maintainer: Rémy Oudompheng <remy@archlinux.org>
3 pkgname=texlive-langjapanese
7 pkgdesc="TeX Live - Fonts and macro packages to typeset Japanese 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"
16 options=('!emptydirs')
17 sha256sums=('f9c23022dfdecb662a2097cc6d495ad07b55e74adb9751e0f96d363b27eddc90'
18 '315f6a076f693cb3d25d1a4502f780ef33222e2932069a5d1c636f9538532952'
19 '32380c3559dcbec676638c7477c43344f92aa613051b190f5b88bf4e371032c3')
30 install -m755 -d "$pkgdir"/var/lib/texmf/arch/installedpkgs
31 sed -i '/^#/d' CONTENTS
32 install -m644 CONTENTS "$pkgdir"/var/lib/texmf/arch/installedpkgs/${pkgname}_${_revnr}.pkgs
33 install -m644 $pkgname.maps "$pkgdir"/var/lib/texmf/arch/installedpkgs/
34 install -m644 $pkgname.fmts "$pkgdir"/var/lib/texmf/arch/installedpkgs/
35 install -m755 -d "$pkgdir"/usr/share
36 wanteddirs=$(for d in *; do test -d $d && [[ $d != texmf* ]] && echo $d; done) || true
37 for dir in $wanteddirs; do
38 find $dir -type d -exec install -d -m755 "$pkgdir"/usr/share/texmf-dist/'{}' \;
39 find $dir -type f -exec install -m644 '{}' "$pkgdir"/usr/share/texmf-dist/'{}' \;
41 if [[ -d texmf-dist ]]; then
42 find texmf-dist -type d -exec install -d -m755 "$pkgdir"/usr/share/'{}' \;
43 find texmf-dist -type f -exec install -m644 '{}' "$pkgdir"/usr/share/'{}' \;
45 if [[ -d "$pkgdir"/usr/share/texmf-dist/scripts ]]; then
46 find "$pkgdir"/usr/share/texmf-dist/scripts -type f -exec chmod a+x '{}' \;
53 ptex-fontmaps/kanji-config-updmap.pl
54 ptex-fontmaps/kanji-config-updmap-sys.sh
55 ptex-fontmaps/kanji-config-updmap-user.sh
56 ptex-fontmaps/kanji-fontmap-creator.pl
58 install -m755 -d "$pkgdir"/usr/bin
59 for _script in ${_linked_scripts}; do
60 _scriptbase=$(basename $_script)
61 _scriptbase=${_scriptbase%.*}
62 ln -s /usr/share/texmf-dist/scripts/${_script} "${pkgdir}/usr/bin/${_scriptbase}"