Date: Friday, June 5, 2020 @ 00:08:11 Author: heftig Revision: 388315
0.1.0-1 Added: libglib-testing/trunk/PKGBUILD ----------+ PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) Added: PKGBUILD =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2020-06-05 00:08:11 UTC (rev 388315) @@ -0,0 +1,39 @@ +# Maintainer: Jan Alexander Steffens (heftig) <hef...@archlinux.org> + +pkgname=libglib-testing +pkgver=0.1.0 +pkgrel=1 +pkgdesc="Test harnesses and mock classes for GLib" +url="https://gitlab.gnome.org/pwithnall/libglib-testing" +license=(LGPL2.1) +arch=(x86_64) +depends=(glib2 dbus) +makedepends=(git meson gtk-doc) +_commit=c761c9fd784bcaca03091af1280e53c0cad39dbc # tags/0.1.0^0 +source=("git+https://gitlab.gnome.org/pwithnall/libglib-testing.git#commit=$_commit") +sha256sums=('SKIP') + +pkgver() { + cd $pkgname + git describe --tags | sed 's/-/+/g' +} + +prepare() { + cd $pkgname +} + +build() { + arch-meson $pkgname build + meson compile -C build +} + +check() { + meson test -C build --print-errorlogs +} + +package() { + depends+=(libg{lib,object,io}-2.0.so) + provides+=(libglib-testing-${pkgver%%.*}.so) + + DESTDIR="$pkgdir" meson install -C build +}