[arch-commits] Commit in lib32-pango/repos (3 files)

Florian Pritz bluewind at nymeria.archlinux.org
Sun Mar 30 21:46:01 UTC 2014


    Date: Sunday, March 30, 2014 @ 23:46:01
  Author: bluewind
Revision: 108641

archrelease: copy trunk to multilib-testing-x86_64

Added:
  lib32-pango/repos/multilib-testing-x86_64/
  lib32-pango/repos/multilib-testing-x86_64/PKGBUILD
    (from rev 108640, lib32-pango/trunk/PKGBUILD)
  lib32-pango/repos/multilib-testing-x86_64/pango.install
    (from rev 108640, lib32-pango/trunk/pango.install)

---------------+
 PKGBUILD      |   48 ++++++++++++++++++++++++++++++++++++++++++++++++
 pango.install |   21 +++++++++++++++++++++
 2 files changed, 69 insertions(+)

Copied: lib32-pango/repos/multilib-testing-x86_64/PKGBUILD (from rev 108640, lib32-pango/trunk/PKGBUILD)
===================================================================
--- multilib-testing-x86_64/PKGBUILD	                        (rev 0)
+++ multilib-testing-x86_64/PKGBUILD	2014-03-30 21:46:01 UTC (rev 108641)
@@ -0,0 +1,48 @@
+# $Id$
+# Contributor: Pierre Schmitz <pierre at archlinux.de>
+# Contributor: Mikko Seppälä <t-r-a-y at mbnet.fi>
+# Maintainer: Biru Ionut <ionut at archlinux.ro>
+
+_pkgbasename=pango
+pkgname=lib32-$_pkgbasename
+pkgver=1.36.3
+pkgrel=1
+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)
+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=('ad48e32917f94aa9d507486d44366e59355fcfd46ef86d119ddcba566ada5d22')
+
+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
+}

Copied: lib32-pango/repos/multilib-testing-x86_64/pango.install (from rev 108640, lib32-pango/trunk/pango.install)
===================================================================
--- multilib-testing-x86_64/pango.install	                        (rev 0)
+++ multilib-testing-x86_64/pango.install	2014-03-30 21:46:01 UTC (rev 108641)
@@ -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
+}




More information about the arch-commits mailing list