1 # Maintainer: Firmicus <firmicus āt gmx dōt net>
2 # Maintainer: Rémy Oudompheng <remy@archlinux.org>
4 pkgname=texlive-pstricks
8 pkgdesc="TeX Live - Additional PSTricks packages"
11 depends=('texlive-core')
12 groups=('texlive-most')
13 url='http://tug.org/texlive/'
14 source=("https://sources.archlinux.org/other/texlive/$pkgname-$pkgver-src.zip")
15 options=('!emptydirs')
16 sha256sums=('86a027eb9a04604212a4057f51e677aa85f86c6ec4d3c5fc7f434c50e9e93f0c')
22 rm -rf {tlpkg,doc,source} || true
25 install -m755 -d "$pkgdir"/var/lib/texmf/arch/installedpkgs
26 sed -i '/^#/d' CONTENTS
27 install -m644 CONTENTS "$pkgdir"/var/lib/texmf/arch/installedpkgs/${pkgname}_${_revnr}.pkgs
28 install -m755 -d "$pkgdir"/usr/share
29 wanteddirs=$(for d in *; do test -d $d && [[ $d != texmf* ]] && echo $d; done) || true
30 for dir in $wanteddirs; do
31 find $dir -type d -exec install -d -m755 "$pkgdir"/usr/share/texmf-dist/'{}' \;
32 find $dir -type f -exec install -m644 '{}' "$pkgdir"/usr/share/texmf-dist/'{}' \;
34 if [[ -d texmf-dist ]]; then
35 find texmf-dist -type d -exec install -d -m755 "$pkgdir"/usr/share/'{}' \;
36 find texmf-dist -type f -exec install -m644 '{}' "$pkgdir"/usr/share/'{}' \;
38 if [[ -d "$pkgdir"/usr/share/texmf-dist/scripts ]]; then
39 find "$pkgdir"/usr/share/texmf-dist/scripts -type f -exec chmod a+x '{}' \;
41 rm "$pkgdir"/usr/share/texmf-dist/scripts/pst-pdf/ps4pdf.bat*
42 install -m755 -d "$pkgdir"/usr/bin
43 ln -s /usr/share/texmf-dist/scripts/pedigree-perl/pedigree.pl "$pkgdir"/usr/bin/pedigree
44 ln -s /usr/share/texmf-dist/scripts/pst2pdf/pst2pdf.pl "$pkgdir"/usr/bin/pst2pdf
45 ln -s /usr/share/texmf-dist/scripts/pst-pdf/ps4pdf "$pkgdir"/usr/bin/ps4pdf