# Maintainer: Erich Eckner # Contributor: nightuser pkgname=glib2-static pkgver=2.69.2 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=('6bcd57303ab579ce9e8acfe564dee93f1e6df371867c0cb5616f5d40dc7b8c4b54aff28b2d057e27d09a1751b023ce46d9bd4b744dd37fc36c38a5b5dd2e3fb2') 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} }