diff options
Diffstat (limited to 'extra/pango')
-rw-r--r-- | extra/pango/PKGBUILD | 32 | ||||
-rw-r--r-- | extra/pango/pango.install | 21 |
2 files changed, 53 insertions, 0 deletions
diff --git a/extra/pango/PKGBUILD b/extra/pango/PKGBUILD new file mode 100644 index 000000000..6834fa5a6 --- /dev/null +++ b/extra/pango/PKGBUILD @@ -0,0 +1,32 @@ +# $Id: PKGBUILD 117877 2011-04-04 21:02:10Z heftig $ +# Maintainer: Jan de Groot <jgc@archlinux.org> + +pkgname=pango +pkgver=1.28.4 +pkgrel=1 +pkgdesc="A library for layout and rendering of text" +arch=('i686' 'x86_64') +license=('LGPL') +depends=('glib2' 'cairo' 'libxft' 'libthai' 'freetype2') +makedepends=('gobject-introspection' 'gtk-doc') +options=('!libtool' '!emptydirs') +install=pango.install +source=(http://ftp.gnome.org/pub/gnome/sources/${pkgname}/1.28/${pkgname}-${pkgver}.tar.bz2) +url="http://www.pango.org/" +sha256sums=('7eb035bcc10dd01569a214d5e2bc3437de95d9ac1cfa9f50035a687c45f05a9f') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + + sed -i '/AC_PATH_XTRA/d' configure.in + autoreconf -vfi + + ./configure --prefix=/usr --sysconfdir=/etc \ + --localstatedir=/var --with-included-modules=basic-fc + make +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + make DESTDIR="${pkgdir}" install +} diff --git a/extra/pango/pango.install b/extra/pango/pango.install new file mode 100644 index 000000000..73b0f5bf1 --- /dev/null +++ b/extra/pango/pango.install @@ -0,0 +1,21 @@ +# 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 +} |