blob: 53fdb672aceb035dfea5fa6c52b1048cb1f0aff3 (
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
# Maintainer: TBK <aur at jjtc dot eu>
# Contributor: TBK <aur at jjtc dot eu>
pkgname=termius-beta
pkgver=9.8.6
pkgrel=1
pkgdesc="Desktop SSH Client"
url="https://www.termius.com/"
arch=('x86_64')
license=('custom')
depends=('at-spi2-core' 'dbus' 'e2fsprogs' 'expat' 'gtk3' 'keyutils' 'libbsd' 'libnotify' 'libsecret' 'libxss' 'libxtst' 'nss' 'util-linux-libs' 'xdg-utils')
optdepends=('libappindicator-gtk3')
makedepends=('squashfs-tools')
# Get latest version + link from https://snapcraft.io/termius-beta|| snap info termius-beta || run the following
# curl -H 'X-Ubuntu-Series: 16' https://api.snapcraft.io/api/v1/snaps/details/termius-beta | jq '.download_url' -r
# curl -H 'X-Ubuntu-Series: 16' https://api.snapcraft.io/api/v1/snaps/details/termius-beta | jq '.version' -r
source=(
"$pkgname-$pkgver.snap::https://api.snapcraft.io/api/v1/snaps/download/yyZzRdoyiRz3EM7iuvjhaIjDfnlFJcZs_339.snap"
"termius-beta.desktop"
"tos.html"
)
sha512sums=('5e8f3f30eeab5944e3a1f472aef960b43441d7de69684b4f555e1e3916d34638dafe044187a2561382b7586b0b63c949e012182a5f1e3b2304a8398ab670fdec'
'8bf93360614226cf477e5322d87e5fefe781d97e30390777ccb89282219c90714e98868381ab69b001c67a606e068f51a177b6f48bbbdb0c0f4a4f27bf0f0dd4'
'6ac7c082d1adba92dd911f46f9926f702be0f92a9843e6252364477d81364569eeeee9b37170a6d9000fde644588734cb6a11d165fc0aff3dbfbcd6ad353ca96')
prepare() {
mkdir -p $pkgname
unsquashfs -f -d $pkgname $pkgname-$pkgver.snap
}
package() {
# Option 1 - copy only the needed files ~183 MiB
mkdir -p "$pkgdir"/opt/$pkgname
cd "$srcdir"/$pkgname
cp -r \
chrome_100_percent.pak \
chrome_200_percent.pak \
chrome_crashpad_handler \
icudtl.dat \
libEGL.so \
libffmpeg.so \
libGLESv2.so \
libvk_swiftshader.so \
libvulkan.so.1 \
locales \
resources \
resources.pak \
termius-beta \
v8_context_snapshot.bin \
vk_swiftshader_icd.json \
"$pkgdir"/opt/$pkgname
cd "$srcdir"
# Option 2 - copy all files from the .snap file ~503 MiB
#mkdir -p "$pkgdir"/opt/
#cp -r "$srcdir"/$pkgname "$pkgdir"/opt/$pkgname
find "$pkgdir"/opt/$pkgname/ -type f -exec chmod 644 {} \;
chmod 755 "$pkgdir"/opt/$pkgname/termius-beta
chmod 755 "$pkgdir"/opt/$pkgname/chrome_crashpad_handler
mkdir -p "$pkgdir"/usr/bin
ln -sf /opt/$pkgname/termius-beta "$pkgdir"/usr/bin/$pkgname
install -Dm0644 tos.html "$pkgdir"/usr/share/licenses/$pkgname/tos.html
install -Dm0644 $pkgname.desktop "$pkgdir"/usr/share/applications/$pkgname.desktop
install -Dm0644 $pkgname/meta/gui/icon.png "$pkgdir"/usr/share/pixmaps/$pkgname.png
}
|