blob: a050835df11fee52e5413d8af6cc5b5ff96b0ee1 (
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: Deleted User <deleted@example.com>
pkgname=greenlight-beta-appimage
pkgver=2.0.0_beta15
pkgrel=1
pkgdesc="An open-source client for xCloud and xHome streaming made in Javascript and Typescript"
arch=('any')
url="https://github.com/unknownskl/greenlight"
license=('unknown')
depends=(
'fuse2'
'hicolor-icon-theme'
'zlib'
)
options=(!strip)
source=("https://github.com/unknownskl/greenlight/releases/download/v${pkgver//_/-}/Greenlight-${pkgver//_/-}.AppImage")
sha512sums=(SKIP)
prepare() {
chmod a+x $srcdir/Greenlight-${pkgver//_/-}.AppImage
$srcdir/Greenlight-${pkgver//_/-}.AppImage --appimage-extract
sed '/^Name=/ s/Greenlight/Greenlight Beta/' -i "$srcdir/squashfs-root/${pkgname//-beta-appimage/""}.desktop"
sed 's/AppRun/\/usr\/bin\/greenlight-beta/g' -i "$srcdir/squashfs-root/${pkgname//-beta-appimage/""}.desktop"
}
package() {
# AppImage
install -Dm755 "$srcdir/Greenlight-${pkgver//_/-}.AppImage" "$pkgdir/opt/${pkgname//-appimage/""}/Greenlight-${pkgver//_/-}.AppImage"
# Desktop file
install -Dm755 "$srcdir/squashfs-root/${pkgname//-beta-appimage/""}.desktop" "$pkgdir/usr/share/applications/${pkgname//-appimage/""}.desktop"
# Icon images
for _icons in 16x16 32x32 48x48 64x64 128x128 256x256 512x512;do
install -Dm645 "$srcdir/squashfs-root/usr/share/icons/hicolor/$_icons/apps/${pkgname//-beta-appimage/""}.png" "$pkgdir/usr/share/icons/hicolor/$_icons/apps/${pkgname//-beta-appimage/""}.png"
done
# Symlink executable
install -dm755 "$pkgdir/usr/bin"
ln -s "/opt/${pkgname//-appimage/""}/Greenlight-${pkgver//_/-}.AppImage" "$pkgdir/usr/bin/${pkgname//-appimage/""}"
}
|