summaryrefslogtreecommitdiffstats
path: root/abs/core/xorg-fonts-encodings
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/xorg-fonts-encodings')
-rw-r--r--abs/core/xorg-fonts-encodings/PKGBUILD21
-rw-r--r--abs/core/xorg-fonts-encodings/xorg-fonts-encodings.install16
2 files changed, 37 insertions, 0 deletions
diff --git a/abs/core/xorg-fonts-encodings/PKGBUILD b/abs/core/xorg-fonts-encodings/PKGBUILD
new file mode 100644
index 0000000..e0e3633
--- /dev/null
+++ b/abs/core/xorg-fonts-encodings/PKGBUILD
@@ -0,0 +1,21 @@
+# $Id: PKGBUILD 356 2008-04-18 22:56:27Z aaron $
+#Maintainer: Jan de Groot <jgc@archlinux.org>
+
+pkgname=xorg-fonts-encodings
+pkgver=1.0.2
+pkgrel=2
+pkgdesc="X.org font encoding files"
+arch=(i686 x86_64)
+url="http://xorg.freedesktop.org/"
+depends=('xorg-font-utils')
+install="xorg-fonts-encodings.install"
+source=(${url}/releases/individual/font/encodings-${pkgver}.tar.bz2)
+md5sums=('11adda157b03d63fd61d95ad7ef00466')
+
+build() {
+ cd ${startdir}/src/encodings-${pkgver}
+ ./configure --prefix=/usr \
+ --with-encodingsdir=/usr/share/fonts/encodings
+ make || return 1
+ make DESTDIR=${startdir}/pkg install || return 1
+}
diff --git a/abs/core/xorg-fonts-encodings/xorg-fonts-encodings.install b/abs/core/xorg-fonts-encodings/xorg-fonts-encodings.install
new file mode 100644
index 0000000..37eac40
--- /dev/null
+++ b/abs/core/xorg-fonts-encodings/xorg-fonts-encodings.install
@@ -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 $*