summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorFantix King2012-09-22 14:28:46 +0800
committerFantix King2015-11-17 12:37:13 +0800
commit4f317892514c14aa7c6157e081219bbcb2bcabca (patch)
treede06b418df7227a90c2be786dc59dd6c53805a7d /PKGBUILD
downloadaur-4f317892514c14aa7c6157e081219bbcb2bcabca.tar.gz
2.32.4-1.1
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD50
1 files changed, 50 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..48c7c12a8cb
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,50 @@
+# $Id: PKGBUILD 78820 2012-10-25 06:47:28Z foutrelis $
+# Upstream Maintainer: Ionut Biru <ibiru@archlinux.org>
+# Contributor: Pierre Schmitz <pierre@archlinux.de>
+# Contributor: Mikko Seppälä <t-r-a-y@mbnet.fi>
+# Maintainer: Fantix King <fantix.king at gmail.com>
+
+_pkgbasename=glib2
+pkgname=libx32-$_pkgbasename
+pkgver=2.32.4
+pkgrel=1.1
+pkgdesc="Common C routines used by GTK+ 2.4 and other libs (x32 ABI)"
+url="http://www.gtk.org/"
+arch=('x86_64')
+license=('LGPL')
+depends=('libx32-pcre' 'libx32-zlib' 'libx32-dbus-core' libx32-libffi $_pkgbasename)
+makedepends=('gcc-multilib-x32' python2-x32)
+options=('!libtool' '!docs')
+source=(
+http://ftp.gnome.org/pub/GNOME/sources/glib/2.32/glib-${pkgver}.tar.xz
+glib-2.0_fix_for_x32.patch
+)
+sha256sums=(
+'a5d742a4fda22fb6975a8c0cfcd2499dd1c809b8afd4ef709bda4d11b167fae2'
+'a2018bad1f010c036fd6959d514046b5d6315f07aa6a2154f5e591e89ab48ea0'
+)
+
+build() {
+ export CC="gcc -mx32"
+ export CXX="g++ -mx32"
+ export PKG_CONFIG_PATH="/usr/libx32/pkgconfig"
+
+ cd "${srcdir}/glib-${pkgver}"
+
+ patch -p1 -i "${srcdir}/glib-2.0_fix_for_x32.patch"
+
+ PYTHON=/opt/python2-x32/bin/python2.7 ./configure --prefix=/usr --sysconfdir=/etc --libdir=/usr/libx32 \
+ --enable-static --enable-shared --with-pcre=system --disable-fam
+ make
+}
+
+package() {
+ cd "${srcdir}/glib-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+ rm -rf "${pkgdir}"/{etc,usr/{share,include}}
+
+ cd "${pkgdir}"/usr/bin
+ mv gio-querymodules gio-querymodules-x32
+ rm -f gdbus glib* gobject-query gsettings gtester*
+ rm -rf "$pkgdir"/usr/{bin,libx32/gdbus-2.0}
+}