[arch-commits] Commit in texlive-langcyrillic/trunk (PKGBUILD texlive.install)
François Charette
francois at archlinux.org
Thu Jul 23 12:46:19 UTC 2009
Date: Thursday, July 23, 2009 @ 08:46:19
Author: francois
Revision: 47163
update to TeXLive 2009 and change to arch=any
Modified:
texlive-langcyrillic/trunk/PKGBUILD
texlive-langcyrillic/trunk/texlive.install
-----------------+
PKGBUILD | 29 ++++++++++++++++++++---------
texlive.install | 6 +-----
2 files changed, 21 insertions(+), 14 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2009-07-23 12:46:15 UTC (rev 47162)
+++ PKGBUILD 2009-07-23 12:46:19 UTC (rev 47163)
@@ -1,29 +1,40 @@
# Maintainer: Firmicus <firmicus āt gmx dōt net>
pkgname=texlive-langcyrillic
-pkgver=2008.12723
+pkgver=2009.14075
pkgrel=1
pkgdesc="TeX Live - Fonts and macro packages to typeset Cyrillic texts"
license=('GPL')
-arch=('i686' 'x86_64')
+arch=(any)
depends=('texlive-core')
-makedepends=('lzma-utils')
groups=('texlive-lang')
url='http://tug.org/texlive/'
source=("ftp://ftp.archlinux.org/other/texlive/$pkgname-$pkgver-src.zip")
+options=('!emptydirs')
install=texlive.install
-md5sums=('bda64172323831c4f475c45a30067574')
+md5sums=('53a092c643216283b986a694744e010c')
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/2008\.//'`
+ _revnr=`echo $pkgver | sed 's/2009\.//'`
install -m644 CONTENTS $pkgdir/usr/share/texmf-var/arch/installedpkgs/${pkgname}_${_revnr}.pkgs || return 1
- for p in *.tar.lzma; do
- lzma --force -dc $p | tar xf - || return 1
+ for p in *.tar.xz; do
+ bsdtar -xf $p || return 1
done
+ rm -rf {tlpkg,doc,source}
install -m755 -d $pkgdir/usr/share || return 1
- find texmf* -type d -exec install -d -m755 $pkgdir/usr/share/'{}' \; || exit 1
- find texmf* -type f -exec install -m644 '{}' $pkgdir/usr/share/'{}' \; || exit 1
+ wanteddirs=$(for d in *; do test -d $d && [[ $d != texmf* ]] && echo $d; done)
+ 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
+ done
+ if [[ -d texmf-dist ]]; then
+ find texmf-dist -type d -exec install -d -m755 $pkgdir/usr/share/'{}' \; || return 1
+ find texmf-dist -type f -exec install -m644 '{}' $pkgdir/usr/share/'{}' \; || return 1
+ fi
+ if [[ -d $pkgdir/usr/share/texmf-dist/scripts ]]; then
+ find $pkgdir/usr/share/texmf-dist/scripts -type f -exec chmod a+x '{}' \;
+ fi
}
Modified: texlive.install
===================================================================
--- texlive.install 2009-07-23 12:46:15 UTC (rev 47162)
+++ texlive.install 2009-07-23 12:46:19 UTC (rev 47163)
@@ -1,8 +1,6 @@
pre_install() {
cat >> /usr/share/texmf-config/web2c/updmap.cfg <<EOF
Map cmcyr.map
-Map lscy.map
-Map mntz.map
EOF
}
@@ -23,9 +21,7 @@
}
pre_remove() {
- MAPS="cmcyr.map
- lscy.map
- mntz.map"
+ MAPS="cmcyr.map"
for m in $MAPS; do sed -i "/^M.\+$m/d" /usr/share/texmf-config/web2c/updmap.cfg ; done
}
More information about the arch-commits
mailing list