1 # Maintainer: Rémy Oudompheng <remy@archlinux.org>
3 pkgname=texlive-pictures
7 pkgdesc="TeX Live - Packages for drawings graphics"
10 depends=('texlive-core')
11 groups=('texlive-most')
12 url='http://tug.org/texlive/'
13 source=("https://sources.archlinux.org/other/texlive/$pkgname-$pkgver-src.zip"
15 "xypdf-rev1.21.patch")
16 options=('!emptydirs')
17 sha256sums=('63ff117823e8e9d23e456fc753343ca1a83224de4ad0481acf5be81e2888de0e'
18 '847676e2322065219992ef249a68cddb26d71e192e8d59db58f264c5e11c8be9'
19 '4e5cedf4775542461b442c06bdabb3eb4e20a04f54e493bc753a958577e78175')
26 rm -rf {tlpkg,doc,source} || true
28 patch -Np1 -i "${srcdir}/xypdf-rev1.21.patch" -d "${srcdir}/tex/generic/xypic"
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* ]] && 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 '{}' \;
62 install -m755 -d "$pkgdir"/usr/bin
63 for _script in ${_linked_scripts}; do
64 _scriptbase=$(basename $_script)
65 _scriptbase=${_scriptbase%.*}
66 ln -s /usr/share/texmf-dist/scripts/${_script} "${pkgdir}/usr/bin/${_scriptbase}"