Date: Sunday, March 8, 2020 @ 06:41:40 Author: heftig Revision: 377027
archrelease: copy trunk to gnome-unstable-x86_64 Added: lightsoff/repos/gnome-unstable-x86_64/ lightsoff/repos/gnome-unstable-x86_64/PKGBUILD (from rev 377026, lightsoff/trunk/PKGBUILD) ----------+ PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) Copied: lightsoff/repos/gnome-unstable-x86_64/PKGBUILD (from rev 377026, lightsoff/trunk/PKGBUILD) =================================================================== --- gnome-unstable-x86_64/PKGBUILD (rev 0) +++ gnome-unstable-x86_64/PKGBUILD 2020-03-08 06:41:40 UTC (rev 377027) @@ -0,0 +1,38 @@ +# Maintainer: Jan Alexander Steffens (heftig) <jan.steff...@gmail.com> +# Contributor: Jan de Groot <j...@archlinux.org> + +pkgname=lightsoff +pkgver=3.36.0 +pkgrel=1 +pkgdesc="Turn off all the lights" +url="https://wiki.gnome.org/Apps/Lightsoff" +arch=(x86_64) +license=(GPL) +depends=(clutter-gtk librsvg) +makedepends=(gobject-introspection yelp-tools appstream-glib vala git meson) +groups=(gnome-extra) +_commit=064870314de4c5ae5929a2476d6211ee48c5c0ce # tags/3.36.0^0 +source=("git+https://gitlab.gnome.org/GNOME/lightsoff.git#commit=$_commit") +sha256sums=('SKIP') + +pkgver() { + cd $pkgname + git describe --tags | sed 's/-/+/g' +} + +prepare() { + cd $pkgname +} + +build() { + arch-meson $pkgname build + ninja -C build +} + +check() { + meson test -C build --print-errorlogs +} + +package() { + DESTDIR="$pkgdir" meson install -C build +}