[arch-commits] CVS update of arch/build/x11/xorg-fonts-encodings (2 files)

Jan de Groot jgc at archlinux.org
Fri Apr 27 14:06:07 EDT 2007


    Date: Friday, April 27, 2007 @ 14:06:07
  Author: jgc
    Path: /home/cvs-arch/arch/build/x11/xorg-fonts-encodings

   Added: xorg-fonts-encodings.install (1.1)
Modified: PKGBUILD (1.5 -> 1.6)

upgpkg: xorg-fonts-encodings 1.0.2-2
Regenerate encodings.dir on post_install/upgrade. The included encodings.dir is invalid.


------------------------------+
 PKGBUILD                     |    7 ++++---
 xorg-fonts-encodings.install |   16 ++++++++++++++++
 2 files changed, 20 insertions(+), 3 deletions(-)


Index: arch/build/x11/xorg-fonts-encodings/PKGBUILD
diff -u arch/build/x11/xorg-fonts-encodings/PKGBUILD:1.5 arch/build/x11/xorg-fonts-encodings/PKGBUILD:1.6
--- arch/build/x11/xorg-fonts-encodings/PKGBUILD:1.5	Sat Jan 20 11:40:40 2007
+++ arch/build/x11/xorg-fonts-encodings/PKGBUILD	Fri Apr 27 14:06:07 2007
@@ -1,13 +1,14 @@
-# $Id: PKGBUILD,v 1.5 2007/01/20 16:40:40 jgc Exp $
+# $Id: PKGBUILD,v 1.6 2007/04/27 18:06:07 jgc Exp $
 #Maintainer: Jan de Groot <jgc at archlinux.org>
 
 pkgname=xorg-fonts-encodings
 pkgver=1.0.2
-pkgrel=1
+pkgrel=2
 pkgdesc="X.org font encoding files"
 arch=(i686 x86_64)
 url="http://xorg.freedesktop.org/"
-makedepends=('xorg-font-utils')
+depends=('xorg-font-utils')
+install="xorg-fonts-encodings.install"
 source=(${url}/releases/individual/font/encodings-${pkgver}.tar.bz2)
 md5sums=('11adda157b03d63fd61d95ad7ef00466')
 
Index: arch/build/x11/xorg-fonts-encodings/xorg-fonts-encodings.install
diff -u /dev/null arch/build/x11/xorg-fonts-encodings/xorg-fonts-encodings.install:1.1
--- /dev/null	Fri Apr 27 14:06:07 2007
+++ arch/build/x11/xorg-fonts-encodings/xorg-fonts-encodings.install	Fri Apr 27 14:06:07 2007
@@ -0,0 +1,16 @@
+# arg 1:  the new package version
+post_install() {
+  echo -n "Regenerating font encodings... "
+  pushd usr/share/fonts/encodings &>/dev/null
+  mkfontscale -n -e "/usr/share/fonts/encodings" -e "/usr/share/fonts/encodings/large"
+  popd &>/dev/null
+  echo "done."
+}
+
+post_upgrade() {
+  post_install
+}
+
+op=$1
+shift
+$op $*




More information about the arch-commits mailing list