diff options
Diffstat (limited to 'abs/core-testing/pango')
-rw-r--r-- | abs/core-testing/pango/PKGBUILD | 24 | ||||
-rw-r--r-- | abs/core-testing/pango/pango.install | 26 |
2 files changed, 50 insertions, 0 deletions
diff --git a/abs/core-testing/pango/PKGBUILD b/abs/core-testing/pango/PKGBUILD new file mode 100644 index 0000000..5284f02 --- /dev/null +++ b/abs/core-testing/pango/PKGBUILD @@ -0,0 +1,24 @@ +# $Id: PKGBUILD 4025 2008-07-02 18:01:45Z jgc $ +# Maintainer: Jan de Groot <jgc@archlinux.org> + +pkgname=pango +pkgver=1.20.5 +pkgrel=1 +pkgdesc="A library for layout and rendering of text" +arch=(i686 x86_64) +license=('LGPL') +depends=('glib2>=2.16.4' 'cairo>=1.6.4' 'libxft>=2.1.12' 'libthai>=0.1.9') +makedepends=('pkgconfig' 'libxt') +options=('!libtool' '!emptydirs') +install=pango.install +source=(http://ftp.gnome.org/pub/gnome/sources/${pkgname}/1.20/${pkgname}-${pkgver}.tar.bz2) +url="http://www.gtk.org/" +md5sums=('052b60a12f6b2eb4f251ab961f2b2b84') + +build() { + cd ${startdir}/src/${pkgname}-${pkgver} + ./configure --prefix=/usr --sysconfdir=/etc \ + --localstatedir=/var --without-qt || return 1 + make || return 1 + make DESTDIR=${startdir}/pkg install || return 1 +} diff --git a/abs/core-testing/pango/pango.install b/abs/core-testing/pango/pango.install new file mode 100644 index 0000000..9978739 --- /dev/null +++ b/abs/core-testing/pango/pango.install @@ -0,0 +1,26 @@ +# arg 1: the new package version +post_install() { + # we need to ldconfig first, in case xfree86's libs aren't + # in ld.so.cache yet + sbin/ldconfig -r . + usr/bin/pango-querymodules >etc/pango/pango.modules +} + +# arg 1: the new package version +# arg 2: the old package version +post_upgrade() { + if [ -f usr/etc/pango/pango.modules ]; then + rm usr/etc/pango/pango.modules + fi + post_install $1 +} + +# arg 1: the old package version +pre_remove() { + rm etc/pango/pango.modules +} + +op=$1 +shift + +$op $* |