lib32/lib32-glib2/PKGBUILD

40 lines
1.2 KiB
Bash

# 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
pkgname=lib32-$_pkgbasename
pkgver=2.28.6
pkgrel=2
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' $_pkgbasename)
makedepends=('gcc-multilib')
options=('!libtool' '!docs')
source=(http://ftp.gnome.org/pub/GNOME/sources/glib/2.28/glib-${pkgver}.tar.bz2)
sha256sums=('557fb7c39d21b9359fbac51fd6b0b883bc97a2561c0166eef993a4078312f578')
build() {
export CC="gcc -m32"
export CXX="g++ -m32"
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
cd "${srcdir}/glib-${pkgver}"
./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*
}