# Maintainer: Mark Wagie pkgname=touche pkgver=2.0.5 pkgrel=1 pkgdesc="The desktop application to configure Touchégg " arch=('x86_64') url="https://github.com/JoseExposito/touche" license=('GPL3') depends=('gjs' 'libadwaita' 'touchegg') makedepends=('gobject-introspection' 'meson' 'npm') checkdepends=('appstream-glib') provides=('libtouche.so') source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz") sha256sums=('4c3b8988cd2e324d67077a5914b094c11e9e850d11f8a0bcbf9e6a9a3d7b445a') build() { cd "$pkgname-$pkgver" export npm_config_cache="$srcdir/npm_cache" npm install arch-meson . build meson compile -C build } check() { cd "$pkgname-$pkgver" # Validate appstream file fails meson test -C build 'Validate desktop file' 'Validate schema file' --print-errorlogs } package() { cd "$pkgname-$pkgver" meson install -C build --destdir "$pkgdir" ln -s "/usr/bin/com.github.joseexposito.$pkgname" "$pkgdir/usr/bin/$pkgname" }