# Maintainer: Erich Eckner # Contributor: nightuser pkgname=glib2-static pkgver=2.69.0 pkgrel=1 pkgdesc="Low level core library: Static library" url="https://wiki.gnome.org/Projects/GLib" license=(LGPL2.1) arch=(x86_64) depends=() makedepends=(gettext zlib libffi shared-mime-info python libelf git util-linux meson dbus) checkdepends=(desktop-file-utils) options=('!docs' '!libtool' '!emptydirs' '!strip' 'staticlibs') source=("http://ftp.gnome.org/pub/gnome/sources/glib/${pkgver%.*}/glib-$pkgver.tar.xz") sha512sums=('1de7517c2dfde724a45507383c909bdaa5d2c2452449b7e091057fb8bbf1ea10dcd7fbb6c7e67735287551bd13e2bbfee910ed848a1a53209a13b43eb7046480') build() { CFLAGS+=' -Wno-unused-result' arch-meson "glib-$pkgver" _build \ --default-library static \ --buildtype release \ -Dselinux=disabled \ -Dman=false \ -Dgtk_doc=false \ -Dinternal_pcre=false ninja -C _build } check() { meson test -C _build --no-suite flaky --timeout-multiplier 2 --print-errorlogs } package() { DESTDIR="$pkgdir" meson install -C _build # Only install static library rm -rf "$pkgdir"/usr/{bin,include,share,lib/glib-2.0,lib/pkgconfig} }