2011-01-14 23:54:01 +08:00
|
|
|
# Lib32 Packages for Chakra, part of chakra-project.org
|
|
|
|
#
|
|
|
|
# maintainer (x86_64): Anke Boersma <abveritas[at]chakra-project[dot]org>
|
|
|
|
# maintainer (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
|
|
|
|
|
|
|
|
_pkgbasename=glib2
|
2012-10-31 07:58:38 +08:00
|
|
|
pkgname="lib32-${_pkgbasename}"
|
2012-05-27 17:42:02 +08:00
|
|
|
pkgver=2.32.1
|
|
|
|
_pkgver=2.32
|
2012-12-19 04:01:31 +08:00
|
|
|
pkgrel=4
|
2012-10-31 07:58:38 +08:00
|
|
|
pkgdesc="Common C routines used by GTK+ 2.4 and other libs. (ELF32)"
|
2011-01-14 23:54:01 +08:00
|
|
|
url="http://www.gtk.org/"
|
|
|
|
arch=('x86_64')
|
|
|
|
license=('LGPL')
|
2012-10-31 07:58:38 +08:00
|
|
|
depends=('lib32-pcre' 'lib32-zlib' 'lib32-dbus-core' "${_pkgbasename}")
|
2012-05-27 17:42:02 +08:00
|
|
|
makedepends=('python2' 'lib32-libffi' 'gcc-multilib')
|
2011-01-14 23:54:01 +08:00
|
|
|
options=('!libtool' '!docs')
|
2012-10-31 07:58:38 +08:00
|
|
|
source=("http://ftp.gnome.org/pub/GNOME/sources/glib/${_pkgver}/glib-${pkgver}.tar.xz")
|
2012-05-27 17:42:02 +08:00
|
|
|
sha256sums=('484d5b7fc09f3fa398355adaf74b369768f5859866c299f229c99721990f8398')
|
2011-01-14 23:54:01 +08:00
|
|
|
|
|
|
|
build() {
|
2012-10-31 07:58:38 +08:00
|
|
|
export CC="gcc -m32 -march=i686"
|
|
|
|
export CXX="g++ -m32 -march=i686"
|
2011-01-14 23:54:01 +08:00
|
|
|
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
|
|
|
|
|
|
|
|
cd "${srcdir}/glib-${pkgver}"
|
2012-10-31 07:58:38 +08:00
|
|
|
|
|
|
|
#############################################################################
|
|
|
|
# Generate an autoconfig cache file.
|
|
|
|
# This is needed to properly cross-compile GLib.
|
|
|
|
#
|
|
|
|
# See:
|
|
|
|
# http://developer.gnome.org/glib/stable/glib-cross-compiling.html
|
|
|
|
|
|
|
|
cat > i686.cache <<EOF
|
|
|
|
glib_cv_long_long_format=ll
|
|
|
|
glib_cv_stack_grows=no
|
|
|
|
glib_cv_uscore=no
|
|
|
|
ac_cv_func_posix_getpwuid_r=yes
|
|
|
|
ac_cv_func_nonposix_getpwuid_r=no
|
|
|
|
ac_cv_func_posix_getgrgid_r=yes
|
|
|
|
EOF
|
|
|
|
|
|
|
|
./configure \
|
|
|
|
--cache-file="i686.cache" \
|
|
|
|
--build="${CARCH}-unknown-linux-gnu" \
|
|
|
|
--host="i686-unknown-linux-gnu" \
|
|
|
|
--prefix=/usr \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--libdir=/usr/lib32 \
|
|
|
|
--enable-static \
|
|
|
|
--enable-shared \
|
|
|
|
--with-pcre=system \
|
|
|
|
--disable-fam \
|
|
|
|
|| return 1
|
|
|
|
|
2011-01-14 23:54:01 +08:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "${srcdir}/glib-${pkgver}"
|
2012-10-31 07:58:38 +08:00
|
|
|
make install DESTDIR="${pkgdir}"
|
2011-01-14 23:54:01 +08:00
|
|
|
rm -rf "${pkgdir}"/{etc,usr/{share,include}}
|
|
|
|
|
2012-10-31 07:58:38 +08:00
|
|
|
cd "${pkgdir}/usr/bin"
|
2011-01-14 23:54:01 +08:00
|
|
|
mv gio-querymodules gio-querymodules-32
|
|
|
|
rm -f gdbus glib* gobject-query gsettings gtester*
|
2012-10-31 07:58:38 +08:00
|
|
|
rm -rf "${pkgdir}/usr"/{bin,lib32/gdbus-2.0}
|
2011-01-14 23:54:01 +08:00
|
|
|
}
|
2012-10-31 07:58:38 +08:00
|
|
|
|
|
|
|
# vim:set ts=2 sw=2 et:
|