blob: b485e38853231383502cf12e1b8bdd9ce7681ad3 (
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
|
# Maintainer: pika02
pkgname=realsr-ncnn-vulkan-bin
pkgver=20220728
pkgrel=1
pkgdesc="RealSR super resolution implemented with ncnn library"
arch=('x86_64' 'i686')
url="https://github.com/nihui/realsr-ncnn-vulkan"
license=('MIT')
depends=('vulkan-icd-loader' 'vulkan-headers')
makedepends=('sh')
provides=("realsr-ncnn-vulkan")
conflicts=("realsr-ncnn-vulkan" "realsr-ncnn-vulkan-git")
source=("https://github.com/nihui/${pkgname%-bin}/releases/download/$pkgver/${pkgname%-bin}-$pkgver-ubuntu.zip"
"${pkgname%-bin}")
sha256sums=('6007e55c156a6b4600e569c68818836c22daeac63fdf71db068966b5425ac085'
'9307f1bfe988b2d2e780c28b447df68ee0acf8f94d18c08cb20ed17bb88c9763')
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
}
|