diff options
author | root <root@rshg054.dnsready.net> | 2013-04-30 00:36:52 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-04-30 00:36:52 -0700 |
commit | 08483ba66f8da1bbec05f93e5e3493d3794c02bb (patch) | |
tree | 5cb63763dcb39b1b59aa5388f1bbe10ccc50f3a2 /multilib-staging/lib32-pango | |
parent | bab69e0f720c6f189c4486b7b945079be23f0a4b (diff) |
Tue Apr 30 00:36:52 PDT 2013
Diffstat (limited to 'multilib-staging/lib32-pango')
-rw-r--r-- | multilib-staging/lib32-pango/PKGBUILD | 49 | ||||
-rw-r--r-- | multilib-staging/lib32-pango/pango.install | 21 |
2 files changed, 70 insertions, 0 deletions
diff --git a/multilib-staging/lib32-pango/PKGBUILD b/multilib-staging/lib32-pango/PKGBUILD new file mode 100644 index 000000000..74a1b1fc4 --- /dev/null +++ b/multilib-staging/lib32-pango/PKGBUILD @@ -0,0 +1,49 @@ +# $Id: PKGBUILD 89394 2013-04-29 08:13:56Z alucryd $ +# Contributor: Pierre Schmitz <pierre@archlinux.de> +# Contributor: Mikko Seppälä <t-r-a-y@mbnet.fi> +# Maintainer: Biru Ionut <ionut@archlinux.ro> + +_pkgbasename=pango +pkgname=lib32-$_pkgbasename +pkgver=1.34.0 +pkgrel=2 +pkgdesc="A library for layout and rendering of text (32-bit)" +arch=('x86_64') +license=('LGPL') +makedepends=("gcc-multilib" 'lib32-fontconfig' \ + 'lib32-mesa-libgl' 'lib32-cairo' 'lib32-libxft' 'lib32-harfbuzz' $_pkgbasename) +options=('!libtool' '!emptydirs') +install=pango.install +source=(http://ftp.gnome.org/pub/gnome/sources/${_pkgbasename}/${pkgver:0:4}/${_pkgbasename}-${pkgver}.tar.xz) +url="http://www.pango.org/" +sha256sums=('105da1efe019018a9de81681d88c9ace83d2111509ab625c4be9d124a1fdce27') + +prepare() { + cd "${srcdir}/${_pkgbasename}-${pkgver}" + + sed -i 's#"pango.modules"#"pango.modules-32"#' pango/modules.c +} + +build() { + export CC="gcc -m32" + export CXX="g++ -m32" + export PKG_CONFIG_PATH="/usr/lib32/pkgconfig" + + cd "${srcdir}/${_pkgbasename}-${pkgver}" + + ./configure --prefix=/usr --libdir=/usr/lib32 --sysconfdir=/etc \ + --localstatedir=/var --with-included-modules=basic-fc \ + --with-dynamic-modules=arabic-fc,arabic-lang,basic-fc,basic-win32,basic-x,basic-atsui,hangul-fc,hebrew-fc,indic-fc,indic-lang,khmer-fc,syriac-fc,tibetan-fc \ + --disable-introspection + make +} + +package() { + depends=('lib32-cairo' 'lib32-libxft' 'lib32-harfbuzz' $_pkgbasename) + cd "${srcdir}/${_pkgbasename}-${pkgver}" + + make DESTDIR="${pkgdir}" install + rm -rf "$pkgdir"/etc + rm -rf "$pkgdir"/usr/{bin/pango-view,share,include} + mv "$pkgdir"/usr/bin/pango-querymodules "$pkgdir"/usr/bin/pango-querymodules-32 +} diff --git a/multilib-staging/lib32-pango/pango.install b/multilib-staging/lib32-pango/pango.install new file mode 100644 index 000000000..173b6820f --- /dev/null +++ b/multilib-staging/lib32-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-32 >etc/pango/pango.modules-32 +} + +# arg 1: the new package version +# arg 2: the old package version +post_upgrade() { + if [ -f etc/pango/pango.modules-32 ]; then + rm etc/pango/pango.modules-32 + fi + post_install $1 +} + +# arg 1: the old package version +pre_remove() { + rm etc/pango/pango.modules-32 +} |