[arch-commits] Commit in texlive-langextra/trunk (3 files)

François Charette francois at archlinux.org
Sat Jun 26 10:42:58 EDT 2010


    Date: Saturday, June 26, 2010 @ 10:42:57
  Author: francois
Revision: 84108

prerelease of texlive 2010

Modified:
  texlive-langextra/trunk/PKGBUILD
  texlive-langextra/trunk/texlive-langextra.maps
  texlive-langextra/trunk/texlive.install

------------------------+
 PKGBUILD               |   32 +++++++++++++++++---------------
 texlive-langextra.maps |    2 --
 texlive.install        |   20 +++++++++++---------
 3 files changed, 28 insertions(+), 26 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2010-06-26 14:42:51 UTC (rev 84107)
+++ PKGBUILD	2010-06-26 14:42:57 UTC (rev 84108)
@@ -1,35 +1,37 @@
 # Maintainer: Firmicus <firmicus āt gmx dōt net>
 
 pkgname=texlive-langextra
-pkgver=2009.15878
-pkgrel=3
+pkgver=2010.18845
+pkgrel=1
 pkgdesc="TeX Live - Bundle of all extra language support"
 license=('GPL')
 arch=(any)
-conflicts=('texlive-langafrican' 'texlive-langarab' 'texlive-langarmenian' 'texlive-langcroatian' 'texlive-langhebrew' 'texlive-langindic' 'texlive-langmongolian' 'texlive-langtibetan' 'texlive-langvietnamese') 
-provides=('texlive-langafrican' 'texlive-langarab' 'texlive-langarmenian' 'texlive-langcroatian' 'texlive-langhebrew' 'texlive-langindic' 'texlive-langmongolian' 'texlive-langtibetan' 'texlive-langvietnamese') 
+conflicts=('texlive-langafrican' 'texlive-langarab' 'texlive-langarabic' 'texlive-langarmenian' 'texlive-langcroatian' 'texlive-langhebrew' 'texlive-langindic' 'texlive-langmongolian' 'texlive-langtibetan' 'texlive-langvietnamese') 
+provides=('texlive-langafrican' 'texlive-langarabic' 'texlive-langarmenian' 'texlive-langcroatian' 'texlive-langhebrew' 'texlive-langindic' 'texlive-langmongolian' 'texlive-langtibetan' 'texlive-langturkmen' 'texlive-langvietnamese') 
 depends=('texlive-latexextra')
 groups=('texlive-lang')
 url='http://tug.org/texlive/'
 source=("ftp://ftp.archlinux.org/other/texlive/$pkgname-$pkgver-src.zip" "$pkgname.maps")
 options=('!emptydirs')
+options=(!strip)
 install=texlive.install
-md5sums=('d79aba58e33bbffbf7fcdb09aff95a4e'
-         '19385050c1b5d3af3643cd765f32d32f')
+md5sums=('4445c688d8c920ad16f2a4e4f4f7a5fb'
+         'a4cbb2f9de807a04f90956e6f8c354ae')
 
 build() {
-   cd $srcdir
-   install -m755 -d $pkgdir/usr/share/texmf-var/arch/installedpkgs || return 1
-   sed -i '/^#/d' CONTENTS || return 1
-   _revnr=`echo $pkgver | sed 's/2009\.//'`
-   install -m644 CONTENTS $pkgdir/usr/share/texmf-var/arch/installedpkgs/${pkgname}_${_revnr}.pkgs || return 1
-   install -m644 $pkgname.maps $pkgdir/usr/share/texmf-var/arch/installedpkgs/ || return 1
-   for p in *.tar.xz; do 
+   for p in *.tar.xz; do
 	   bsdtar -xf $p || return 1
    done
-   rm -rf {tlpkg,doc,source}
+   rm -rf {tlpkg,doc,source} || true
+}
+package() {
+   install -m755 -d $pkgdir/var/lib/texmf/arch/installedpkgs || return 1
+   sed -i '/^#/d' CONTENTS || return 1
+   _revnr=`echo $pkgver | sed 's/2010\.//'`
+   install -m644 CONTENTS $pkgdir/var/lib/texmf/arch/installedpkgs/${pkgname}_${_revnr}.pkgs || return 1
+   install -m644 $pkgname.maps $pkgdir/var/lib/texmf/arch/installedpkgs/ || return 1
    install -m755 -d $pkgdir/usr/share || return 1
-   wanteddirs=$(for d in *; do test -d $d && [[ $d != texmf* ]] && echo $d; done)
+   wanteddirs=$(for d in *; do test -d $d && [[ $d != texmf* ]] && echo $d; done) || true
    for dir in $wanteddirs; do
      find $dir -type d -exec install -d -m755 $pkgdir/usr/share/texmf-dist/'{}' \; || return 1
      find $dir -type f -exec install -m644 '{}' $pkgdir/usr/share/texmf-dist/'{}' \; || return 1

Modified: texlive-langextra.maps
===================================================================
--- texlive-langextra.maps	2010-06-26 14:42:51 UTC (rev 84107)
+++ texlive-langextra.maps	2010-06-26 14:42:57 UTC (rev 84108)
@@ -4,10 +4,8 @@
 Map chartervn.map
 Map cjhebrew.map
 Map cmbrightvn.map
-Map comicvn.map
 Map concretevn.map
 Map grotesqvn.map
-Map mscorevn.map
 Map skt.map
 Map txttvn.map
 Map urwvn.map

Modified: texlive.install
===================================================================
--- texlive.install	2010-06-26 14:42:51 UTC (rev 84107)
+++ texlive.install	2010-06-26 14:42:57 UTC (rev 84108)
@@ -1,5 +1,5 @@
 PKGNAME="texlive-langextra"
-UPDMAP="/usr/share/texmf-config/web2c/updmap.cfg"
+UPDMAP="/etc/texmf/web2c/updmap.cfg"
 SYNCWITHTREES=''
 NEWMAPS=`mktemp`
 cat <<EOF > $NEWMAPS
@@ -9,10 +9,8 @@
 Map chartervn.map
 Map cjhebrew.map
 Map cmbrightvn.map
-Map comicvn.map
 Map concretevn.map
 Map grotesqvn.map
-Map mscorevn.map
 Map skt.map
 Map txttvn.map
 Map urwvn.map
@@ -31,15 +29,19 @@
 
 post_install() {
 	echo    ">>> texlive: updating the filename database..."
-	texconfig-sys rehash
+	/usr/bin/mktexlsr
 	echo    ">>> texlive: updating the fontmap files with updmap..."
-	updmap-sys --quiet --nohash
+	/usr/bin/updmap-sys --quiet --nohash
 	echo    " done." 
 }
 
 
 pre_upgrade() {
-  OLDMAPS="/usr/share/texmf-var/arch/installedpkgs/$PKGNAME.maps"
+  if [[ "$2" == 200* ]]; then
+    OLDMAPS="/usr/share/texmf-var/arch/installedpkgs/$PKGNAME.maps"
+  else # >= 2010
+    OLDMAPS="/var/lib/texmf/arch/installedpkgs/$PKGNAME.maps"
+  fi
   if [ -f $OLDMAPS ] ; then
     MAPSDIFF=`mktemp`
     TOADD=`mktemp`
@@ -55,7 +57,7 @@
        cat $TOADD >> $UPDMAP
     fi
   else
-    echo "Warning: file $PKGNAME.maps not found" 
+    echo "Warning: file $OLDMAPS not found" 
     echo "(ignore the above if updating from TL2008 or from TL2009 in testing)"
     SYNCWITHTREES="--syncwithtrees"
   fi
@@ -64,9 +66,9 @@
 
 post_upgrade() {
 	echo    ">>> texlive: updating the filename database..."
-	texconfig-sys rehash
+	/usr/bin/mktexlsr
 	echo    ">>> texlive: updating the fontmap files with updmap..."
-	updmap-sys --quiet --nohash $SYNCWITHTREES
+	/usr/bin/updmap-sys --quiet --nohash $SYNCWITHTREES
 	echo    " done." 
 }
 



More information about the arch-commits mailing list