diff options
Diffstat (limited to 'libre/texlive-texmf-libre')
-rw-r--r-- | libre/texlive-texmf-libre/PKGBUILD | 67 | ||||
-rw-r--r-- | libre/texlive-texmf-libre/texlive.install | 51 |
2 files changed, 118 insertions, 0 deletions
diff --git a/libre/texlive-texmf-libre/PKGBUILD b/libre/texlive-texmf-libre/PKGBUILD new file mode 100644 index 000000000..bd3dfa528 --- /dev/null +++ b/libre/texlive-texmf-libre/PKGBUILD @@ -0,0 +1,67 @@ +# Maintainer: Michał Masłowski + +pkgname=texlive-texmf-libre +pkgver=2011 +pkgrel=1 +epoch= +pkgdesc="TeXLive files used by TeX and related programs" +arch=('any') +url="http://tug.org/texlive/" +license=('GPL') +groups=() +depends=('texlive-bin-libre') +provides=('texlive-bibtexextra' 'texlive-core' 'texlive-fontsextra' 'texlive-formatsextra' 'texlive-games' 'texlive-genericextra' 'texlive-htmlxml' 'texlive-humanities' 'texlive-langcjk' 'texlive-langcyrillic' 'texlive-langextra' 'texlive-langgreek' 'texlive-latexextra' 'texlive-music' 'texlive-pictures' 'texlive-plainextra' 'texlive-pstricks' 'texlive-publishers' 'texlive-science') +conflicts=('texlive-bibtexextra' 'texlive-core' 'texlive-fontsextra' 'texlive-formatsextra' 'texlive-games' 'texlive-genericextra' 'texlive-htmlxml' 'texlive-humanities' 'texlive-langcjk' 'texlive-langcyrillic' 'texlive-langextra' 'texlive-langgreek' 'texlive-latexextra' 'texlive-music' 'texlive-pictures' 'texlive-plainextra' 'texlive-pstricks' 'texlive-publishers' 'texlive-science') +replaces=('texlive-bibtexextra' 'texlive-core' 'texlive-fontsextra' 'texlive-formatsextra' 'texlive-games' 'texlive-genericextra' 'texlive-htmlxml' 'texlive-humanities' 'texlive-langcjk' 'texlive-langcyrillic' 'texlive-langextra' 'texlive-langgreek' 'texlive-latexextra' 'texlive-music' 'texlive-pictures' 'texlive-plainextra' 'texlive-pstricks' 'texlive-publishers' 'texlive-science') +backup=() +options=() +install=texlive.install +source=($pkgname-$pkgver.tar.xz) +noextract=() +md5sums=('7575a6bee3a487bbcf7f8e1e1f215881') + +mksource() { + [ -f texlive-20110705-texmf.tar.xz ] || wget ftp://tug.org/historic/systems/texlive/2011/texlive-20110705-texmf.tar.xz + tar xf texlive-20110705-texmf.tar.xz + mv texlive-20110705-texmf "$pkgname-$pkgver" + cd "$pkgname-$pkgver" + # We have it in texlive-bin-libre + rm -rf texmf + # Generated files, are separately made after installation. + rm texmf-dist/ls-R + # MeX-licensed packages. + rm -rf texmf-dist/{fonts/{map/dvips,{type1,tfm,source}/public},doc/fonts}/cc-pl + rm -rf texmf-dist/fonts/{map/dvips,{type1,enc,tfm,source}/public}/cs + rm -rf texmf-dist/{doc,source,tex}/mex + # Includes code from nonfree PL fonts. Probably some files could + # be useful without it, but the license requires including whole + # original source. + rm -rf texmf-dist/{fonts/{tfm,source}/jknappen,doc/fonts}/ec + # Public domain, will be relicensed in next version. + rm -rf texmf-dist/{doc,source,tex}/context/third/{account,algorithmic,fixme,games,letter,ruby} + # No specific free license. + rm -rf texmf-dist/{doc,source,tex}/latex/{authoraftertitle,clock,fltpage,fnpara} + rm -rf texmf-dist/{fonts/{tfm,source}/public,doc/fonts,doc/latex}/{euro-ce,ogham} + # No explicit modification permission. + rm -rf texmf-dist/{doc,source,tex}/latex/cmdtrack + # Recommends nonfree software. + rm -rf texmf-dist/doc/generic/tex-virtual-academy-pl + # Recommends nonfree fonts and it's not obvious if no right to + # modify such document is needed. + rm -rf texmf-dist/doc/fonts/free-math-font-survey + # No modification. + rm -rf texmf-dist/doc/plain/gentle + cd .. + tar cJf "$pkgname-$pkgver.tar.xz" "$pkgname-$pkgver" +} + +build() { + : +} + +package() { + mkdir -p "$pkgdir/usr/share" + cp -R "$srcdir/$pkgname-$pkgver/texmf-dist" "$pkgdir/usr/share" +} + +# vim:set ts=2 sw=2 et: diff --git a/libre/texlive-texmf-libre/texlive.install b/libre/texlive-texmf-libre/texlive.install new file mode 100644 index 000000000..3ec6158ba --- /dev/null +++ b/libre/texlive-texmf-libre/texlive.install @@ -0,0 +1,51 @@ +# From Arch's texlive-core. + +PKGNAME="texlive-texmf-libre" +UPDMAP="etc/texmf/web2c/updmap.cfg" +UPDMAPLOCAL="etc/texmf/web2c/updmap-local.cfg" +SYNCWITHTREES='' + +post_install() { + TMPFILE=`mktemp` + echo ">>> texlive: saving updmap.cfg as $TMPFILE..." + cp "$UPDMAP" "$TMPFILE" + echo ">>> texlive: regenerating updmap.cfg (custom additions shoud go" + echo " into /etc/texmf/web2c/updmap-local.cfg" + cp usr/share/texmf/web2c/updmap-hdr.cfg $UPDMAP + cat var/lib/texmf/arch/installedpkgs/*.maps >> $UPDMAP + [ -f "$UPDMAPLOCAL" ] && cat "$UPDMAPLOCAL" >> $UPDMAP + echo ">>> texlive: updating the filename database..." + usr/bin/mktexlsr + echo ">>> texlive: updating the fontmap files with updmap..." + usr/bin/updmap-sys --quiet --nohash + echo " done." + echo -n "creating all formats..." + usr/bin/fmtutil-sys --all 1>/dev/null + echo " done." + echo " (logs are under /var/lib/texmf/web2c/<engine>/<formatname>.log)" +# TODO needs our documentation +# echo "NB: To setup ConTeXt and the lua(la)tex font db," +# echo " see http://wiki.archlinux.org/index.php/TeX_Live" +} + +post_upgrade() { + TMPFILE=`mktemp` + echo ">>> texlive: saving updmap.cfg as $TMPFILE..." + cp "$UPDMAP" "$TMPFILE" + echo ">>> texlive: regenerating updmap.cfg (custom additions shoud go" + echo " into /etc/texmf/web2c/updmap-local.cfg" + cp usr/share/texmf/web2c/updmap-hdr.cfg $UPDMAP + cat var/lib/texmf/arch/installedpkgs/*.maps >> $UPDMAP + [ -f "$UPDMAPLOCAL" ] && cat "$UPDMAPLOCAL" >> $UPDMAP + echo ">>> texlive: updating the filename database..." + usr/bin/mktexlsr + echo ">>> texlive: updating the fontmap files with updmap..." + usr/bin/updmap-sys --quiet --nohash $SYNCWITHTREES + echo " done." + echo ">>> texlive: recreating all formats..." + usr/bin/fmtutil-sys --all 1>/dev/null + echo " done." + echo " (logs are under /var/lib/texmf/web2c/<engine>/<formatname>.log)" +# echo "NB: To setup ConTeXt and the lua(la)tex font db," +# echo " see http://wiki.archlinux.org/index.php/TeX_Live" +} |