diff options
author | James Meyer <James.meyer@operamail.com> | 2008-10-02 03:19:12 (GMT) |
---|---|---|
committer | James Meyer <James.meyer@operamail.com> | 2008-10-02 03:19:12 (GMT) |
commit | 0e2532d4e8f4eed5e047f1db54d5c03ba849ec0a (patch) | |
tree | c0aa2c0b53c317be87eacfcb77b63f53f1f415e7 /abs/core-testing/xorg-fonts-encodings | |
download | linhes_pkgbuild-0e2532d4e8f4eed5e047f1db54d5c03ba849ec0a.zip linhes_pkgbuild-0e2532d4e8f4eed5e047f1db54d5c03ba849ec0a.tar.gz linhes_pkgbuild-0e2532d4e8f4eed5e047f1db54d5c03ba849ec0a.tar.bz2 |
initial import
Diffstat (limited to 'abs/core-testing/xorg-fonts-encodings')
-rw-r--r-- | abs/core-testing/xorg-fonts-encodings/PKGBUILD | 21 | ||||
-rw-r--r-- | abs/core-testing/xorg-fonts-encodings/xorg-fonts-encodings.install | 16 |
2 files changed, 37 insertions, 0 deletions
diff --git a/abs/core-testing/xorg-fonts-encodings/PKGBUILD b/abs/core-testing/xorg-fonts-encodings/PKGBUILD new file mode 100644 index 0000000..e0e3633 --- /dev/null +++ b/abs/core-testing/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-testing/xorg-fonts-encodings/xorg-fonts-encodings.install b/abs/core-testing/xorg-fonts-encodings/xorg-fonts-encodings.install new file mode 100644 index 0000000..37eac40 --- /dev/null +++ b/abs/core-testing/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 $* |