1 # Maintainer: Rémy Oudompheng <remy@archlinux.org>
3 pkgname=texlive-langkorean
7 pkgdesc="TeX Live - Fonts and macro packages to typeset Korean 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=('d3e326d8db7ae1e18d29ed49568c6aaab5b151603a63b740fb0d35a793980a88'
16 'd948fbcd015ca101eb2ccf197f5a835e864a0c9b6be638de8355444ced378a9b')
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 '{}' \;
47 kotex-utils/jamo-normalize.pl
48 kotex-utils/komkindex.pl
49 kotex-utils/ttf2kotexfont.pl
51 install -m755 -d "$pkgdir"/usr/bin
52 for _script in ${_linked_scripts}; do
53 _scriptbase=$(basename $_script)
54 _scriptbase=${_scriptbase%.*}
55 ln -s /usr/share/texmf-dist/scripts/${_script} "${pkgdir}/usr/bin/${_scriptbase}"