1 # Maintainer: Firmicus <firmicus āt gmx dōt net>
2 # Maintainer: Rémy Oudompheng <remy@archlinux.org>
4 pkgname=texlive-langcyrillic
8 pkgdesc="TeX Live - Fonts and macro packages to typeset Cyrillic texts"
11 depends=('texlive-core')
12 makedepends=('subversion')
13 groups=('texlive-lang')
14 url='http://tug.org/texlive/'
15 source=("https://sources.archlinux.org/other/texlive/$pkgname-$pkgver-src.zip"
17 "texlive-man::svn://tug.org/texlive/tags/texlive-2022.0/Master/texmf-dist/doc/man#revision=${_revnr}")
18 options=('!emptydirs')
19 sha256sums=('18834e4d4205574ebf1abe62fecbb92ca79bcd9a4428b981300392c94880c086'
20 '313214980ace9c724766e9ffbfcfd3fb234fb97b3ff340508326f9712fc57770'
28 rm -rf {tlpkg,doc,source} || true
33 install -m755 -d "$pkgdir/var/lib/texmf/arch/installedpkgs"
34 sed -i '/^#/d' CONTENTS
35 install -m644 CONTENTS "$pkgdir/var/lib/texmf/arch/installedpkgs/${pkgname}_${_revnr}.pkgs"
36 install -m644 $pkgname.maps "$pkgdir/var/lib/texmf/arch/installedpkgs/"
37 install -m755 -d "$pkgdir/usr/share"
38 wanteddirs=$(for d in *; do test -d $d && [[ $d != texmf* ]] && [[ $d != texlive-man ]] && echo $d; done) || true
39 for dir in $wanteddirs; do
40 find $dir -type d -exec install -d -m755 "$pkgdir"/usr/share/texmf-dist/'{}' \;
41 find $dir -type f -exec install -m644 '{}' "$pkgdir"/usr/share/texmf-dist/'{}' \;
43 if [[ -d texmf-dist ]]; then
44 find texmf-dist -type d -exec install -d -m755 "$pkgdir"/usr/share/'{}' \;
45 find texmf-dist -type f -exec install -m644 '{}' "$pkgdir"/usr/share/'{}' \;
47 if [[ -d "$pkgdir/usr/share/texmf-dist/scripts" ]]; then
48 find "$pkgdir/usr/share/texmf-dist/scripts" -type f -exec chmod a+x '{}' \;
50 mkdir -p "${pkgdir}/usr/bin"
51 mkdir -p "${pkgdir}/usr/share/man/man1"
52 ln -s /usr/share/texmf-dist/scripts/texlive-extra/rubibtex.sh "${pkgdir}/usr/bin/rubibtex"
53 ln -s /usr/share/texmf-dist/scripts/texlive-extra/rumakeindex.sh "${pkgdir}/usr/bin/rumakeindex"
54 install -m644 "$srcdir/texlive-man/man1/rubibtex.1" "${pkgdir}/usr/share/man/man1/"
55 install -m644 "$srcdir/texlive-man/man1/rumakeindex.1" "${pkgdir}/usr/share/man/man1/"