makedeb


waifu2x-ncnn-vulkan-bin 20220728-1


waifu2x converter ncnn version, runs fast on intel / amd / nvidia GPU with vulkan

Viewing /PKGBUILD.

View raw.

Click here to go back to the Git tree for waifu2x-ncnn-vulkan-bin.

# Maintainer: hiddeninthesand <hiddeninthesand at protonmail dot com>

# AUR Maintainer: PumpkinCheshire <me@pumpkincheshire.top>

pkgname='waifu2x-ncnn-vulkan-bin'
pkgver='20220728'
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")
makedepends=()
provides=("waifu2x-ncnn-vulkan")
conflicts=("waifu2x-ncnn-vulkan" "waifu2x-ncnn-vulkan-git")
source=("https://github.com/nihui/${pkgname%-bin}/releases/download/$pkgver/${pkgname%-bin}-$pkgver-ubuntu.zip"
	"waifu2x-ncnn-vulkan")
b2sums=('0a8da8328e29353eb4fea49f76a8777acd82ca0b7dfb209d6ef26207a94693c73910a1687254cd849c4c13027fa9895c155e6dc1e597f343701d2f10814e0941'
        '40caf86e019e717a1a9afef698ffd2c6748457f91b2c29293cc249701eb88ccbdd65e3e447567c1f0d87c5d9649d373b10b1b124be7b15a6e8be6374881cd771')

package() {
	install -Dm755 ${pkgname%-bin} "${pkgdir}/usr/bin/${pkgname%-bin}"

	cd "${srcdir}/${pkgname%-bin}-$pkgver-ubuntu"
	install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"

	install -Dm755 "${srcdir}/${pkgname%-bin}-$pkgver-ubuntu/${pkgname%-bin}" "${pkgdir}/usr/share/${pkgname%-bin}/${pkgname%-bin}"

	cd "${srcdir}/${pkgname%-bin}-$pkgver-ubuntu/"
	for f in models-*/*; do
		install -Dm 644 "$f" ${pkgdir}/usr/share/${pkgname%-bin}/"$f"
	done
}