blob: fb63010a0bb7fa96c6f0e67754b34e9fe851f034 (
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
44
45
46
47
48
49
50
51
52
53
54
55
|
# Maintainer: Kevin MacMartin <prurigro@gmail.com>
# Contributor: bionade24
# Contributor: vivaeltopo
# Contributor: aliu
_pkgname=upscayl
pkgname=$_pkgname-bin
pkgver=2.11.5
pkgrel=1
pkgdesc='Free and Open Source AI Image Upscaler'
url='https://github.com/upscayl/upscayl'
license=('AGPL-3.0-only')
arch=('x86_64')
depends=('libvips' 'openjpeg2' 'electron' 'nodejs')
makedepends=('unzip')
provides=($_pkgname)
conflicts=($_pkgname)
options=('!strip')
noextract=("upscayl-${pkgver}-linux.zip")
source=(
"https://github.com/upscayl/upscayl/releases/download/v${pkgver}/upscayl-${pkgver}-linux.zip"
"$_pkgname"
)
sha512sums=(
'06b2bd501445f62b50ccf2e2d5cd9713d153a8a911b3a4eb159f461448d71384b265af6f8a564652a694fc91613dddcf0858b96726d4c57941c21d349a917541'
'eae35fb7bef2b50512dec60fe1ab9e5bb7f4cd71931bd36951ee30a2d238299aeab88bac35aba4108ddd5c3e2cf6948a9cd144b0f3451e30c4f28b81d2e1e07a'
)
prepare() {
cd "$srcdir"
unzip ${_pkgname}-${pkgver}-linux.zip -x resources/128x128.png -d ${_pkgname}-${pkgver}
printf '%s\n' 'Icon=org.upscayl.Upscayl' >> ${_pkgname}-${pkgver}/resources/org.upscayl.Upscayl.desktop
}
package() {
cd "$srcdir"
# Launcher script
install -Dm755 "$_pkgname" "$pkgdir"/usr/bin/$_pkgname
# Enter the package folder
cd ${_pkgname}-${pkgver}/resources
# XDG launcher
install -dm755 "$pkgdir"/usr/share/applications
install -dm755 "$pkgdir"/usr/share/pixmaps
mv org.upscayl.Upscayl.desktop "$pkgdir"/usr/share/applications/
mv 512x512.png "$pkgdir"/usr/share/pixmaps/org.upscayl.Upscayl.png
# App directory
install -dm755 "$pkgdir"/opt/$_pkgname
mv * "$pkgdir"/opt/${_pkgname}/
}
|