Commit f3db25e6 authored by AlmAck's avatar AlmAck

lib32-glib2 2.58.1 [skip-ci]

parent 3bc7a349
Pipeline #1823 skipped
_pkgbasename=glib2 _pkgbasename=glib2
pkgname=lib32-$_pkgbasename pkgname=lib32-$_pkgbasename
pkgver=2.54.2 pkgver=2.58.1
pkgrel=2 pkgrel=1
pkgdesc="Common C routines used by GTK+ 2.4 and other libs (32-bit)" pkgdesc="Common C routines used by GTK+ 2.4 and other libs (32-bit)"
url="" url=""
arch=('x86_64') arch=('x86_64')
license=('LGPL') license=('LGPL')
depends=('lib32-libdbus' 'lib32-libffi' 'lib32-pcre' 'lib32-libelf' 'lib32-util-linux' "${_pkgbasename}=${pkgver}") depends=('lib32-libdbus' 'lib32-libffi' 'lib32-pcre' 'lib32-libelf' 'lib32-util-linux' "${_pkgbasename}=${pkgver}")
makedepends=('gcc-multilib' 'python3') makedepends=('gcc-multilib' 'python3')
checkdepends=(desktop-file-utils lib32-glib2)
options=('!docs') options=('!docs')
source=("${pkgver%.*}/glib-${pkgver}.tar.xz") source=("${pkgver%.*}/glib-${pkgver}.tar.xz"
sha256sums=('bb89e5c5aad33169a8c7f28b45671c7899c12f74caf707737f784d7102758e6c') gio-querymodules-32.hook)
prepare() { prepare() {
cd "${srcdir}/glib-${pkgver}" cd "${srcdir}/glib-${pkgver}"
...@@ -22,20 +25,22 @@ build() { ...@@ -22,20 +25,22 @@ build() {
export CXX="g++ -m32" export CXX="g++ -m32"
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig" export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
cd "${srcdir}/glib-${pkgver}" chakra-meson glib-$pkgver build \
PYTHON=/usr/bin/python3 ./configure --prefix=/usr --sysconfdir=/etc \ -D selinux=false \
--libdir=/usr/lib32 --with-pcre=system --disable-fam --disable-gtk-doc --libdir=/usr/lib32
make ninja -C build
check() {
meson test -C build -t 2
} }
package() { package() {
cd "${srcdir}/glib-${pkgver}" DESTDIR="$pkgdir" meson install -C build
make DESTDIR="${pkgdir}" install
rm -rf "${pkgdir}"/{etc,usr/{share,include}} rm -r "$pkgdir"/usr/{share,include}
find "$pkgdir/usr/bin" -type f -not -name gio-querymodules -printf 'Removing %P\n' -delete
cd "${pkgdir}"/usr/bin mv "$pkgdir"/usr/bin/gio-querymodules{,-32}
mv gio-querymodules gio-querymodules-32
rm -f gdbus glib* gobject-query gsettings gtester* install -Dt "$pkgdir/usr/share/libalpm/hooks" -m644 *.hook
rm -rf "$pkgdir"/usr/lib32/gdbus-2.0
find "$pkgdir/usr/bin" -type f -not -name gio-querymodules-32 -delete
} }
Type = File
Operation = Install
Operation = Upgrade
Operation = Remove
Target = usr/lib32/gio/modules/*.so
Description = Updating 32-bit GIO module cache...
When = PostTransaction
Exec = /usr/bin/gio-querymodules-32 /usr/lib32/gio/modules
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment