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=('9c40e74a9d46e541cec93ffe5e683933ab0b453544ac6a508d533cd5ac30a184'
18 '315f6a076f693cb3d25d1a4502f780ef33222e2932069a5d1c636f9538532952'
19 'd4b9f54bc5d8d48c61407d6afe6ad5efea150d4ba9e56d828b76274346a2dcf4')
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}"