From 01fcc1537a0c4bfd589b8ce8b1868d69c2f3c5f0 Mon Sep 17 00:00:00 2001 From: xpamych Date: Sat, 2 Sep 2023 20:42:51 +0300 Subject: [PATCH] upscale-bin --- upscayl-bin/lure.sh | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 upscayl-bin/lure.sh diff --git a/upscayl-bin/lure.sh b/upscayl-bin/lure.sh new file mode 100644 index 0000000..46e39ff --- /dev/null +++ b/upscayl-bin/lure.sh @@ -0,0 +1,29 @@ +name='upscayl-bin' +version='2.7.5' +release='1' +desc='Free and Open Source AI Image Upscaler' +homepage='https://github.com/upscayl/upscayl' +maintainer="Евгений Храмов " +architectures=('amd64') +license=('AGPL3') +provides=('upscayl') +conflicts=('upscayl') +deps=('fuse2' 'nss' 'zlib') +build_deps=('util-linux') + +sources=("https://github.com/upscayl/upscayl/releases/download/v${pkgver}/upscayl-${pkgver}-linux.AppImage") +checksums=('SKIP') + +prepare() { + cd "${srcdir}" + [[ -d squashfs-root ]] && rm -rf squashfs-root + chmod 755 upscayl-${pkgver}-linux.AppImage + ./upscayl-${pkgver}-linux.AppImage --appimage-extract + sed -i 's|^Exec=.*|Exec=upscayl|' squashfs-root/upscayl.desktop +} + +package() { + install -Dm644 squashfs-root/usr/share/icons/hicolor/0x0/apps/upscayl.png "$pkgdir/usr/share/pixmaps/upscayl.png" + install -Dm644 squashfs-root/upscayl.desktop "$pkgdir/usr/share/applications/upscayl.desktop" + install -Dm755 upscayl-${pkgver}-linux.AppImage "$pkgdir/usr/bin/$_pkgname" +}