summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorPumpkinCheshire2021-04-21 00:28:19 +0800
committerPumpkinCheshire2021-04-21 00:28:19 +0800
commitf2605d800fab4b8f7f0180f6fdb7f1ca5f9317ab (patch)
treed8eca53fa65a6cc57ef90b59a847b2e3b0985de6
downloadaur-f2605d800fab4b8f7f0180f6fdb7f1ca5f9317ab.tar.gz
init
-rw-r--r--.SRCINFO17
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD32
3 files changed, 53 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..91e7c747cfd
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = waifu2x-ncnn-vulkan-bin
+ pkgdesc = waifu2x converter ncnn version, runs fast on intel / amd / nvidia GPU with vulkan
+ pkgver = 20210210
+ pkgrel = 1
+ url = https://github.com/nihui/waifu2x-ncnn-vulkan
+ arch = x86_64
+ license = MIT
+ depends = vulkan-icd-loader
+ depends = vulkan-headers
+ provides = waifu2x-ncnn-vulkan
+ conflicts = waifu2x-ncnn-vulkan
+ conflicts = waifu2x-ncnn-vulkan-git
+ source = https://github.com/nihui/waifu2x-ncnn-vulkan/releases/download/20210210/waifu2x-ncnn-vulkan-20210210-ubuntu.zip
+ sha256sums = ce0296c4788474bd5acd997169016ade32f02f49ce622a7a145dedd529d3e721
+
+pkgname = waifu2x-ncnn-vulkan-bin
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..018a3de0814
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+*
+!PKGBUILD
+!.SRCINFO
+!.gitignore
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..c11facb08e9
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,32 @@
+# Maintainer: PumpkinCheshire <sollyonzou@gmail.com>
+
+_name=waifu2x-ncnn-vulkan
+pkgname=waifu2x-ncnn-vulkan-bin
+pkgver=20210210
+pkgrel=1
+pkgdesc="waifu2x converter ncnn version, runs fast on intel / amd / nvidia GPU with vulkan"
+arch=('x86_64')
+url="https://github.com/nihui/waifu2x-ncnn-vulkan"
+license=('MIT')
+depends=("vulkan-icd-loader" "vulkan-headers")
+makedepends=()
+provides=("waifu2x-ncnn-vulkan")
+conflicts=("waifu2x-ncnn-vulkan" "waifu2x-ncnn-vulkan-git")
+source=("https://github.com/nihui/$_name/releases/download/$pkgver/$_name-$pkgver-ubuntu.zip")
+sha256sums=('ce0296c4788474bd5acd997169016ade32f02f49ce622a7a145dedd529d3e721')
+
+package() {
+ cd "${srcdir}/$_name-$pkgver-ubuntu"
+ install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+
+ install -Dm755 "${srcdir}/$_name-$pkgver-ubuntu/$_name" "${pkgdir}/usr/share/$_name/$_name"
+
+ cd "${srcdir}/$_name-$pkgver-ubuntu/"
+ for f in models-*/*; do
+ install -Dm 644 "$f" ${pkgdir}/usr/share/$_name/"$f"
+ done
+
+ printf '#!/bin/sh\n/usr/share/waifu2x-ncnn-vulkan/waifu2x-ncnn-vulkan "$@"' >$_name
+ install -Dm755 $_name "${pkgdir}/usr/bin/$_name"
+
+}