Date: Thursday, October 22, 2020 @ 15:47:20 Author: ainola Revision: 729254
Actually implement tests; so much was wrong before... Include a patch for disabling a license check as it depends on a git repo. See https://github.com/wmww/gtk-layer-shell/issues/73 Added: gtk-layer-shell/trunk/disable_license_check.patch Modified: gtk-layer-shell/trunk/PKGBUILD -----------------------------+ PKGBUILD | 18 +++++++++++++----- disable_license_check.patch | 9 +++++++++ 2 files changed, 22 insertions(+), 5 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2020-10-22 15:45:38 UTC (rev 729253) +++ PKGBUILD 2020-10-22 15:47:20 UTC (rev 729254) @@ -4,7 +4,7 @@ pkgdesc='Library to create Wayland desktop components using the Layer Shell protocol' pkgname=gtk-layer-shell pkgver=0.4.0 -pkgrel=1 +pkgrel=2 arch=(x86_64) license=(LGPL3) url="https://github.com/wmww/gtk-layer-shell" @@ -18,13 +18,21 @@ "meson" "ninja" ) -source=("$pkgname-$pkgver.tar.gz::https://github.com/wmww/gtk-layer-shell/archive/v$pkgver.tar.gz") -sha512sums=('60882fa1b79c81ececd7d5dd1b3722cde10f48ff1e25a533afc6c0474d75f8e83d596ec3585301917337e770766db4a14c1c45132c4fef09d49967e2fd531049') +source=("$pkgname-$pkgver.tar.gz::https://github.com/wmww/gtk-layer-shell/archive/v$pkgver.tar.gz" + "disable_license_check.patch") +sha512sums=('60882fa1b79c81ececd7d5dd1b3722cde10f48ff1e25a533afc6c0474d75f8e83d596ec3585301917337e770766db4a14c1c45132c4fef09d49967e2fd531049' + '84e1c890ac57bd516e3616da7bfe096d4aa4b5c495140871e004a02af7d789377689e3f54344a9335fa4a8ee1d9fb6a9b914ba45b188b0e17abf4a25de2031ac') +prepare() { + # https://github.com/wmww/gtk-layer-shell/issues/73 + patch -p1 -d "$pkgname-$pkgver" < disable_license_check.patch +} + build() { meson --prefix=/usr \ --wrap-mode=nofallback \ --buildtype=plain \ + -Dtests=true \ -Ddocs=true \ "$pkgname-$pkgver" \ build @@ -31,8 +39,8 @@ ninja -C build } -test() { - ninja -C test +check() { + ninja -C build test } package() { Added: disable_license_check.patch =================================================================== --- disable_license_check.patch (rev 0) +++ disable_license_check.patch 2020-10-22 15:47:20 UTC (rev 729254) @@ -0,0 +1,9 @@ +--- a/test/meson.build 2020-10-21 17:30:15.000000000 -0700 ++++ b/test/meson.build 2020-10-22 08:38:03.794099893 -0700 +@@ -47,6 +47,3 @@ + include_directories: [gtk_layer_shell_inc], + link_with: [gtk_layer_shell_lib]) + test('test-get-version', test_get_version, args: [meson.project_version()]) +- +-check_licenses_script = files(meson.current_source_dir() + '/check-licenses.py') +-test('check-licenses', py, args: [check_licenses_script])