summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 452e32156cb6865a3c1d2536d0997dbd0d0ce904 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Maintainer: begin-theadventure <begin-thecontact.ncncb at dralias dot com>
# Contributor: Igor Dyatlov <dyatlov.igor@protonmail.com>

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"
}