summaryrefslogtreecommitdiff
path: root/testing/pango
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-09-29 23:14:32 +0000
committerroot <root@rshg054.dnsready.net>2011-09-29 23:14:32 +0000
commit0abb1942e8be584d56a1b35b2d1911cbe9f5bbd1 (patch)
tree1a8030f72ecc9d90c9f4c41d9a9d0662169b6404 /testing/pango
parentf8db5d1487e8e0ceeb97a396e357c1540a047ed8 (diff)
Thu Sep 29 23:14:32 UTC 2011
Diffstat (limited to 'testing/pango')
-rw-r--r--testing/pango/PKGBUILD29
-rw-r--r--testing/pango/pango.install21
2 files changed, 50 insertions, 0 deletions
diff --git a/testing/pango/PKGBUILD b/testing/pango/PKGBUILD
new file mode 100644
index 000000000..97d393fd4
--- /dev/null
+++ b/testing/pango/PKGBUILD
@@ -0,0 +1,29 @@
+# $Id: PKGBUILD 139031 2011-09-28 19:32:50Z ibiru $
+# Maintainer: Jan de Groot <jgc@archlinux.org>
+
+pkgname=pango
+pkgver=1.29.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' 'libxt' 'gtk-doc')
+options=('!libtool' '!emptydirs')
+install=pango.install
+source=(http://ftp.gnome.org/pub/gnome/sources/${pkgname}/1.29/${pkgname}-${pkgver}.tar.xz)
+url="http://www.pango.org/"
+sha256sums=('7ae8d1953e6098a2706df58c1f84555c06ace7006bb34c0e54ab9acd98c1127f')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ ./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/testing/pango/pango.install b/testing/pango/pango.install
new file mode 100644
index 000000000..73b0f5bf1
--- /dev/null
+++ b/testing/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
+}