summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cd596bac9c185b0680b41f1708176a748aa0f9c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Maintainer: hiddeninthesand <hiddeninthesand at protonmail dot com>

pkgname=realesrgan-ncnn-vulkan-bin
pkgver=0.2.2.4
pkgrel=1
pkgdesc="Real-ESRGAN aims at developing Practical Algorithms for General Image Restoration"
arch=("x86_64")
depends=("vulkan-icd" "build-essential")
url="https://github.com/xinntao/Real-ESRGAN"
license=("BSD-3")
source=("https://github.com/xinntao/Real-ESRGAN/releases/download/v${pkgver}/realesrgan-ncnn-vulkan-20210901-ubuntu.zip")
sha256sums=("cad3fd31328faaec148da128915dde60dc3cf9c3cc56b72e0ee19d3904baf322")

package() {
    cd $srcdir
    install -Dm755 "realesrgan-ncnn-vulkan" "$pkgdir/usr/share/realesrgan-ncnn-vulkan/realesrgan-ncnn-vulkan"
    for i in models/*; do
        install -Dm644 $i "$pkgdir/usr/share/realesrgan-ncnn-vulkan/$i"
    done
    mkdir -p "$pkgdir/usr/bin/"
    ln -s "/usr/share/realesrgan-ncnn-vulkan/realesrgan-ncnn-vulkan" "$pkgdir/usr/bin/realesrgan-ncnn-vulkan"
}