lib32/lib32-glib2/PKGBUILD

49 lines
1.5 KiB
Bash
Raw Normal View History

# Lib32 Packages for Chakra, part of chakra-project.org
#
_pkgbasename=glib2
2015-01-06 15:16:21 +08:00
pkgname=lib32-$_pkgbasename
pkgver=2.46.2
2015-01-06 15:16:21 +08:00
pkgrel=1
pkgdesc="Common C routines used by GTK+ 2.4 and other libs (32-bit)"
url="http://www.gtk.org/"
arch=('x86_64')
license=('LGPL')
2015-01-06 15:16:21 +08:00
depends=('lib32-libdbus' 'lib32-libffi' 'lib32-pcre' 'lib32-zlib' "${_pkgbasename}=${pkgver}")
makedepends=('gcc-multilib' 'python2')
2014-02-14 04:35:39 +08:00
options=('!docs')
2015-01-06 15:16:21 +08:00
source=("http://ftp.gnome.org/pub/GNOME/sources/glib/${pkgver%.*}/glib-${pkgver}.tar.xz"
'revert-warn-glib-compile-schemas.patch' 'memleak.patch')
sha256sums=('5031722e37036719c1a09163cc6cf7c326e4c4f1f1e074b433c156862bd733db'
'049240975cd2f1c88fbe7deb28af14d4ec7d2640495f7ca8980d873bb710cc97'
'8337eeba4a32133d41575c8338fca32ac6a867e6e4a4e021355fcdeb606420a6')
2015-01-06 15:16:21 +08:00
prepare() {
cd "${srcdir}/glib-${pkgver}"
patch -Rp1 -i ../revert-warn-glib-compile-schemas.patch
patch -Np1 -i ../memleak.patch
2015-01-06 15:16:21 +08:00
}
build() {
2012-12-20 06:50:51 +08:00
export CC="gcc -m32"
export CXX="g++ -m32"
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
cd "${srcdir}/glib-${pkgver}"
2015-01-06 15:16:21 +08:00
PYTHON=/usr/bin/python2 ./configure --prefix=/usr --sysconfdir=/etc \
--libdir=/usr/lib32 --with-pcre=system --disable-fam
make
}
package() {
cd "${srcdir}/glib-${pkgver}"
2012-12-20 06:50:51 +08:00
make DESTDIR="${pkgdir}" install
rm -rf "${pkgdir}"/{etc,usr/{share,include}}
2012-12-20 06:50:51 +08:00
cd "${pkgdir}"/usr/bin
mv gio-querymodules gio-querymodules-32
rm -f gdbus glib* gobject-query gsettings gtester*
2012-12-20 06:50:51 +08:00
rm -rf "$pkgdir"/usr/lib32/gdbus-2.0
find "$pkgdir/usr/bin" -type f -not -name gio-querymodules-32 -delete
}