summaryrefslogtreecommitdiff
path: root/multilib-staging
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-02-08 23:15:20 +0000
committerroot <root@rshg054.dnsready.net>2012-02-08 23:15:20 +0000
commit54b7119c36756b86ea463649ee972cd6c1ce5863 (patch)
tree973aa8caa4f7be614c973b0c56390bd5c61ba985 /multilib-staging
parent0dee03071a0643c3ee5820afa3c694dcef71d385 (diff)
Wed Feb 8 23:15:20 UTC 2012
Diffstat (limited to 'multilib-staging')
-rw-r--r--multilib-staging/lib32-glib2/PKGBUILD40
-rw-r--r--multilib-staging/lib32-pcre/PKGBUILD37
2 files changed, 77 insertions, 0 deletions
diff --git a/multilib-staging/lib32-glib2/PKGBUILD b/multilib-staging/lib32-glib2/PKGBUILD
new file mode 100644
index 000000000..a0281ebac
--- /dev/null
+++ b/multilib-staging/lib32-glib2/PKGBUILD
@@ -0,0 +1,40 @@
+# $Id: PKGBUILD 63935 2012-02-07 13:32:04Z bluewind $
+# Maintainer: Ionut Biru <ibiru@archlinux.org>
+# Contributor: Pierre Schmitz <pierre@archlinux.de>
+# Contributor: Mikko Seppälä <t-r-a-y@mbnet.fi>
+
+_pkgbasename=glib2
+pkgname=lib32-$_pkgbasename
+pkgver=2.30.2
+pkgrel=3
+pkgdesc="Common C routines used by GTK+ 2.4 and other libs (32-bit)"
+url="http://www.gtk.org/"
+arch=('x86_64')
+license=('LGPL')
+depends=('lib32-pcre' 'lib32-zlib' 'lib32-dbus-core' lib32-libffi $_pkgbasename)
+makedepends=('gcc-multilib' python2)
+options=('!libtool' '!docs')
+source=(http://ftp.gnome.org/pub/GNOME/sources/glib/2.30/glib-${pkgver}.tar.xz)
+sha256sums=('f0e91e6333321ddb48fa12b5c66f56c3d5f05325748c66dd2e9016c278ff8e82')
+
+build() {
+ export CC="gcc -m32"
+ export CXX="g++ -m32"
+ export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
+
+ cd "${srcdir}/glib-${pkgver}"
+ PYTHON=/usr/bin/python2 ./configure --prefix=/usr --sysconfdir=/etc --libdir=/usr/lib32 \
+ --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-32
+ rm -f gdbus glib* gobject-query gsettings gtester*
+ rm -rf "$pkgdir"/usr/{bin/gdbus-codegen,lib32/gdbus-2.0}
+}
diff --git a/multilib-staging/lib32-pcre/PKGBUILD b/multilib-staging/lib32-pcre/PKGBUILD
new file mode 100644
index 000000000..3f91b0772
--- /dev/null
+++ b/multilib-staging/lib32-pcre/PKGBUILD
@@ -0,0 +1,37 @@
+# $Id: PKGBUILD 63933 2012-02-07 13:23:22Z bluewind $
+# Maintainer: Ionut Biru <ibiru@archlinux.org>
+
+_pkgbasename=pcre
+pkgname=lib32-$_pkgbasename
+pkgver=8.30
+pkgrel=1
+pkgdesc="A library that implements Perl 5-style regular expressions (32-bit)"
+arch=('x86_64')
+url="http://pcre.sourceforge.net"
+license=('custom')
+depends=('lib32-gcc-libs' $_pkgbasename)
+makedepends=('gcc-multilib')
+options=('!libtool')
+source=(ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/${_pkgbasename}-${pkgver}.tar.bz2{,.sig})
+md5sums=('98e8928cccc945d04279581e778fbdff'
+ '01eee0333fa71687e0b6756db77f94ad')
+
+build() {
+ cd "${srcdir}"/${_pkgbasename}-${pkgver}
+ export CC="gcc -m32"
+ export CXX="g++ -m32"
+ export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
+
+ ./configure --prefix=/usr --libdir=/usr/lib32 \
+ --enable-utf8 --enable-unicode-properties --enable-pcre16 --enable-jit
+ make
+}
+
+package() {
+ cd "${srcdir}/${_pkgbasename}-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+
+ rm -rf "${pkgdir}"/usr/{include,share,bin}
+ mkdir -p "$pkgdir/usr/share/licenses"
+ ln -s $_pkgbasename "$pkgdir/usr/share/licenses/$pkgname"
+}