blob: c17d349bfc198883fc9938522f9e2b47dda0c884 (
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
32
33
34
35
36
37
38
39
40
41
42
43
|
# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
_appname=realesrgan
pkgname="${_appname}-gui-bin"
_pkgname="Real-ESRGAN GUI"
pkgver=0.2.5.0
_pkgver=autobuild_20240602_060617
pkgrel=2
pkgdesc="实用、美观的 Real-ESRGAN 图形界面,同时支持 Windows、Ubuntu 和 macOS 平台。现在也支持 Real-CUGAN 了!(Cross-platform GUI for image upscaler Real-ESRGAN with additional features. Now with Real-CUGAN support!)"
arch=("x86_64")
url="http://akarin.dev/realesrgan-gui/"
_ghurl="https://github.com/TransparentLC/realesrgan-gui"
license=('AGPL-3.0-only')
provides=("${pkgname%-bin}=${pkgver}")
conflicts=("${pkgname%-bin}")
depends=(
'vulkan-icd-loader'
'zlib'
'gcc-libs'
)
makedepends=(
'gendesk'
)
options=(
'!emptydirs'
)
source=(
"${pkgname%-bin}-${pkgver}.tar.xz::${_ghurl}/releases/download/${_pkgver//_/-}/${pkgname%-bin}-ubuntu-bundled-v${pkgver}.tar.xz"
"${pkgname%-bin}-${pkgver}.png::https://raw.githubusercontent.com/TransparentLC/realesrgan-gui/${_pkgver//_/-}/icon-1024px.png"
)
sha256sums=('faf3f876ec173ed98c4ba7a5724aad2efa0088fbb1608639503ff822d484ff33'
'a989cff54510fcdd651a0e6d1818288ce7633cc6ba968adf6dd92bb21b813831')
build() {
gendesk -q -f -n --pkgname="${pkgname%-bin}" --pkgdesc="${pkgdesc}" --categories="Graphics" --name="${_pkgname}" --exec="${pkgname%-bin}"
touch "${srcdir}/${pkgname%-bin}/config.ini"
}
package() {
install -Dm755 -d "${pkgdir}/usr/"{bin,lib}
cp -r "${srcdir}/${pkgname%-bin}" "${pkgdir}/usr/lib/"
ln -sf "/usr/lib/${pkgname%-bin}/${pkgname%-bin}" "${pkgdir}/usr/bin/${pkgname%-bin}"
install -Dm644 "${srcdir}/${pkgname%-bin}-${pkgver}.png" "${pkgdir}/usr/share/pixmaps/${pkgname%-bin}.png"
install -Dm644 "${srcdir}/${pkgname%-bin}.desktop" -t "${pkgdir}/usr/share/applications"
chmod 666 "${pkgdir}/usr/lib/${pkgname%-bin}/config.ini"
}
|