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

Jan Steffens heftig at archlinux.org
Sat Jun 3 14:03:03 UTC 2017


    Date: Saturday, June 3, 2017 @ 14:03:02
  Author: heftig
Revision: 233763

archrelease: copy trunk to multilib-testing-x86_64

Added:
  lib32-glib2/repos/multilib-testing-x86_64/
  lib32-glib2/repos/multilib-testing-x86_64/PKGBUILD
    (from rev 233762, lib32-glib2/trunk/PKGBUILD)
  lib32-glib2/repos/multilib-testing-x86_64/gio-querymodules-32.hook
    (from rev 233762, lib32-glib2/trunk/gio-querymodules-32.hook)

--------------------------+
 PKGBUILD                 |   61 +++++++++++++++++++++++++++++++++++++++++++++
 gio-querymodules-32.hook |   11 ++++++++
 2 files changed, 72 insertions(+)

Copied: lib32-glib2/repos/multilib-testing-x86_64/PKGBUILD (from rev 233762, lib32-glib2/trunk/PKGBUILD)
===================================================================
--- multilib-testing-x86_64/PKGBUILD	                        (rev 0)
+++ multilib-testing-x86_64/PKGBUILD	2017-06-03 14:03:02 UTC (rev 233763)
@@ -0,0 +1,61 @@
+# $Id$
+# Contributor: Ionut Biru <ibiru at archlinux.org>
+# Contributor: Pierre Schmitz <pierre at archlinux.de>
+# Contributor: Mikko Seppälä <t-r-a-y at mbnet.fi>
+
+_pkgbasename=glib2
+pkgname=lib32-$_pkgbasename
+pkgver=2.52.2+9+g3245eba16
+pkgrel=1
+pkgdesc="Low level core library (32-bit)"
+url="http://www.gtk.org/"
+arch=(x86_64)
+license=(LGPL)
+depends=(lib32-dbus lib32-libffi lib32-pcre lib32-util-linux lib32-libelf "$_pkgbasename")
+makedepends=(gcc-multilib python git)
+_commit=3245eba169c439180cc13ed3c76f47298d723031  # glib-2-52
+source=("git+https://git.gnome.org/browse/glib#commit=$_commit"
+        gio-querymodules-32.hook)
+sha256sums=('SKIP'
+            '73b6791b58180e2a02fe908938e6c547ee1b263f8c387262f9a8c4105ffa999a')
+
+pkgver() {
+  cd glib
+  git describe --tags | sed 's/-/+/g'
+}
+
+prepare() {
+  cd glib
+  NOCONFIGURE=1 ./autogen.sh
+}
+
+build() {
+  export CC="gcc -m32"
+  export CXX="g++ -m32"
+  export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
+
+  cd glib
+  ./configure --prefix=/usr --libdir=/usr/lib32 \
+      --sysconfdir=/etc \
+      --with-pcre=system \
+      --disable-fam \
+      --disable-gtk-doc \
+      $(check_option debug y && echo --enable-debug=yes)
+  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
+  make
+}
+
+package() {
+  cd glib
+  make DESTDIR="$pkgdir" install
+
+  rm -r "$pkgdir"/usr/{share,include}
+  find "$pkgdir/usr/bin" -type f -not -name gio-querymodules -delete
+
+  mv "$pkgdir"/usr/bin/gio-querymodules{,-32}
+
+  # install hooks
+  install -d "$pkgdir/usr/share/libalpm/hooks/"
+  install -m644 "$srcdir"/gio-querymodules-32.hook \
+    "$pkgdir/usr/share/libalpm/hooks/"
+}

Copied: lib32-glib2/repos/multilib-testing-x86_64/gio-querymodules-32.hook (from rev 233762, lib32-glib2/trunk/gio-querymodules-32.hook)
===================================================================
--- multilib-testing-x86_64/gio-querymodules-32.hook	                        (rev 0)
+++ multilib-testing-x86_64/gio-querymodules-32.hook	2017-06-03 14:03:02 UTC (rev 233763)
@@ -0,0 +1,11 @@
+[Trigger]
+Type = File
+Operation = Install
+Operation = Upgrade
+Operation = Remove
+Target = usr/lib32/gio/modules/*.so
+
+[Action]
+Description = Updating 32-bit GIO module cache...
+When = PostTransaction
+Exec = /usr/bin/gio-querymodules-32 /usr/lib32/gio/modules



More information about the arch-commits mailing list