blob: 7c6dcf3ef8be631622bbbc6d963c933e811d7081 (
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
|
# Maintainer: TBK <aur@jjtc.eu>
# Contributor: TBK <aur@jjtc.eu>
pkgname=termius-beta
pkgver=5.9.1
pkgrel=1
pkgdesc="Desktop SSH Client"
url="https://www.termius.com/"
arch=('x86_64')
license=('custom')
depends=('libnotify' 'libappindicator-gtk3' 'libxtst' 'nss' 'libxss')
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_90.snap"
"termius-beta.desktop"
"tos.html"
)
sha512sums=('151e09d423acfad2777f3633f1394b9e6424490ec364586648f294c70fa521f3b86e01b1ed2a2b1de6a348dd01195adfb7de6fd2c7c83600c476d745d39b8e8f'
'f626754916d9a07faa6d1b2bbdf34da8385aaf1b29eca3c0007079b06de18a4a3c51007d8b753a0c9d721c9ea48f646d00ac3ec219cb4eb77c4419bba634d34b'
'53f9c61fba12b72817c5e7f4e0ac520489265fbf425fa46f13129da66632b41a2a128072d9e0e64e37e4e8feb8424bc1c15eed127d630314e6459ceb2dbafb4b')
prepare() {
mkdir $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 \
icudtl.dat \
libffmpeg.so \
locales \
resources \
resources.pak \
termius-beta \
v8_context_snapshot.bin \
"$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
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
}
|