summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cd8e57d271234d9c27152481246b8abc88fcf191 (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
36
37
38
# Maintainer: begin-theadventure <begin-thecontact.ncncb at dralias dot com>
# Contributor: Igor Dyatlov <dyatlov.igor@protonmail.com>

_pkgname=upscaler
pkgname=$_pkgname-git
pkgver=1.1.2
pkgrel=1
pkgdesc="Upscale and enhance images (latest commit)"
arch=('any')
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=("$_pkgname")
conflicts=("$_pkgname")
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"
  install -Dm644 Upscaler/README.md -t "$pkgdir/usr/share/doc/$_pkgname"
  install -Dm644 Upscaler/COPYING -t "$pkgdir/usr/share/licenses/$_pkgname"
}