This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

arch texlive-core PKGBUILD

By: a guest on Mar 24th, 2012  |  syntax: None  |  size: 4.40 KB  |  views: 20  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Maintainer: Rémy Oudompheng <remy@archlinux.org>
  2.  
  3. pkgname=texlive-core
  4. pkgver=2011.24722
  5. _revnr=${pkgver#2011.}
  6. pkgrel=1
  7. pkgdesc="TeX Live core distribution"
  8. license=('GPL')
  9. arch=(any)
  10. depends=('texlive-bin')
  11. optdepends=(
  12.   'perl:        for many useful tools'
  13.   'ruby:        for old ConTeXT MkII and epspdf'
  14.   'tk:          for texdoctk'
  15.   'python2:     for dviasm'
  16.   'ghostscript: for epstopdf, epspdf and other ConTeXt tools'
  17.   'psutils:     to manipulate the output of dvips'
  18.   't1utils:     can be useful when installing Type1 fonts'
  19. )
  20. groups=('texlive-most')
  21. conflicts=('tetex' 'texlive-latex3')
  22. provides=('tetex' 'texlive-latex3')
  23. replaces=('tetex' 'texlive-latex3')
  24. url='http://tug.org/texlive/'
  25. source=("ftp://ftp.archlinux.org/other/texlive/$pkgname-$pkgver-src.zip"
  26.         "$pkgname.maps")
  27. options=(!strip)
  28. install=texlive.install
  29. #backup=(etc/texmf/tex/context/config/cont-usr.tex)
  30. md5sums=('3c02f6dd6b3b03b37a5cfd60457bc07a'
  31.          'b71ac4faaf8a8dd13a2c544c9a64c2e8')
  32.  
  33. build() {
  34.    cd "$srcdir"
  35.    echo -n "   --> extracting all packages... "
  36.    for p in *.tar.xz; do
  37.      bsdtar -xf $p
  38.    done
  39.    echo "done"
  40.    rm -rf {tlpkg,doc,source,omega} || true
  41. }
  42.  
  43. package() {
  44.    install -m755 -d $pkgdir/var/lib/texmf/arch/installedpkgs
  45.    sed -i '/^#/d' CONTENTS
  46.    install -m644 CONTENTS $pkgdir/var/lib/texmf/arch/installedpkgs/${pkgname}_${_revnr}.pkgs
  47.    install -m644 $pkgname.maps $pkgdir/var/lib/texmf/arch/installedpkgs/
  48.    install -m755 -d $pkgdir/usr/share
  49.    wanteddirs=$(for d in *; do test -d $d && [[ $d != texmf* ]] && echo $d; done) || true
  50.    for dir in $wanteddirs; do
  51.      find $dir -type d -exec install -d -m755 $pkgdir/usr/share/texmf-dist/'{}' \;
  52.      find $dir -type f -exec install -m644 '{}' $pkgdir/usr/share/texmf-dist/'{}' \;
  53.    done
  54.    find texmf-dist -type d -exec install -d -m755 $pkgdir/usr/share/'{}' \;
  55.    find texmf-dist -type f -exec install -m644 '{}' $pkgdir/usr/share/'{}' \;
  56.    if [[ -d $pkgdir/usr/share/texmf-dist/scripts ]]; then
  57.      find $pkgdir/usr/share/texmf-dist/scripts -type f -exec chmod a+x '{}' \;
  58.    fi
  59.    # use python2 for dviasm
  60.    sed -i 's/env python/env python2/' $pkgdir/usr/share/texmf-dist/scripts/dviasm/dviasm.py
  61.  
  62.    # copy config file to texmf-config
  63.    #mkdir -p $pkgdir/etc/texmf/tex/context/config
  64.    #cp -a $pkgdir/usr/share/texmf-dist/tex/context/config/cont-usr.tex \
  65.    #      $pkgdir/etc/texmf/tex/context/config/cont-usr.tex
  66.    
  67.    # remove obsolete stuff (we don't provide the omega and aleph binaries anyway)
  68.    #rm -rf $pkgdir/usr/share/texmf-dist/omega
  69.    rm -f $pkgdir/usr/share/texmf-dist/tex/plain/config/{omega,aleph}.ini
  70.    # more cleanup
  71.    rm -rf $pkgdir/usr/share/texmf-dist/scripts/context/stubs/mswin/
  72.  
  73.     # link programs from /usr/share/texmf-dist/scripts
  74.     _linked_scripts="
  75. accfonts/mkt1font
  76. accfonts/vpl2ovp
  77. accfonts/vpl2vpl
  78. bundledoc/arlatex
  79. bundledoc/bundledoc
  80. context/perl/mptopdf.pl
  81. ctanify/ctanify
  82. ctanupload/ctanupload.pl
  83. de-macro/de-macro
  84. dviasm/dviasm.py
  85. epstopdf/epstopdf.pl
  86. findhyph/findhyph
  87. fontools/afm2afm
  88. fontools/autoinst
  89. fontools/cmap2enc
  90. fontools/font2afm
  91. fontools/ot2kpx
  92. fontools/pfm2kpx
  93. fontools/showglyphs
  94. fragmaster/fragmaster.pl
  95. installfont/installfont-tl
  96. latex2man/latex2man
  97. latexdiff/latexdiff-vc.pl
  98. latexdiff/latexdiff.pl
  99. latexdiff/latexrevise.pl
  100. latexmk/latexmk.pl
  101. luaotfload/mkluatexfontdb.lua
  102. match_parens/match_parens
  103. mf2pt1/mf2pt1.pl
  104. mkjobtexmf/mkjobtexmf.pl
  105. oberdiek/pdfatfi.pl
  106. pdfcrop/pdfcrop.pl
  107. pdfjam/pdf180
  108. pdfjam/pdf270
  109. pdfjam/pdf90
  110. pdfjam/pdfbook
  111. pdfjam/pdfflip
  112. pdfjam/pdfjam
  113. pdfjam/pdfjam-pocketmod
  114. pdfjam/pdfjam-slides3up
  115. pdfjam/pdfjam-slides6up
  116. pdfjam/pdfjoin
  117. pdfjam/pdfnup
  118. pdfjam/pdfpun
  119. pkfix-helper/pkfix-helper
  120. pkfix/pkfix.pl
  121. purifyeps/purifyeps
  122. sty2dtx/sty2dtx.pl
  123. texcount/texcount.pl
  124. texdef/texdef.pl
  125. texdiff/texdiff
  126. texdirflatten/texdirflatten
  127. texloganalyser/texloganalyser
  128. thumbpdf/thumbpdf.pl
  129. texliveonfly/texliveonfly.py
  130. "
  131.     install -m755 -d $pkgdir/usr/bin
  132.     for _script in ${_linked_scripts}; do
  133.         _scriptbase=$(basename $_script)
  134.         _scriptbase=${_scriptbase%.*}
  135.         ln -s /usr/share/texmf-dist/scripts/${_script} ${pkgdir}/usr/bin/${_scriptbase}
  136.     done
  137.     ln -s /usr/share/texmf-dist/scripts/listings-ext/listings-ext.sh ${pkgdir}/usr/bin/listings-ext.sh
  138.  
  139.     # additional symlinks
  140.     ln -s epstopdf ${pkgdir}/usr/bin/repstopdf
  141.     ln -s pdfcrop ${pkgdir}/usr/bin/rpdfcrop
  142. }
clone this paste RAW Paste Data