# Maintainer: begin-theadventure # Contributor: Igor Dyatlov pkgname=upscaler-git pkgver=1.2.2.r38.g8cba706 pkgrel=1 pkgdesc="Upscale and enhance images (latest commit)" arch=('x86_64') url="https://gitlab.gnome.org/World/Upscaler" license=('GPL3') depends=('libadwaita' 'python-cffi' 'python-gobject' 'python-vulkan' 'realesrgan-ncnn-vulkan') makedepends=('blueprint-compiler' 'git' 'meson') checkdepends=('appstream-glib') provides=("upscaler") conflicts=("upscaler") source=(git+$url.git) sha256sums=('SKIP') pkgver() { cd Upscaler git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' } build() { arch-meson Upscaler build meson compile -C build } check() { meson test -C build --print-errorlogs || : } package() { meson install -C build --destdir "$pkgdir" }