blob: e7121a294d47c525147185e9a0d241f308dd8114 (
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
|
# Maintainer: Xuruh <admin@jorvik.app>
pkgname=jorvik-bin
_pkgname=jorvik
pkgver=1.0.33
pkgrel=1
pkgdesc="Chat and voice for Matrix"
arch=('x86_64')
url="https://github.com/jorvikapp/jorvik"
license=('AGPL-3.0-only')
# Translated from the upstream .deb's Depends. libuuid1 is util-linux-libs on
# Arch, and libxss1/libxtst6 are libxss/libxtst.
depends=('gtk3' 'nss' 'libnotify' 'libxss' 'libxtst' 'at-spi2-core' 'libsecret'
'util-linux-libs' 'xdg-utils' 'alsa-lib')
optdepends=('libappindicator-gtk3: tray icon on desktops using AppIndicator')
provides=("$_pkgname=$pkgver")
conflicts=("$_pkgname")
options=('!strip' '!debug')
install="$pkgname.install"
source=("$_pkgname-$pkgver.deb::$url/releases/download/v$pkgver/Jorvik-$pkgver.deb")
sha256sums=('f186c4572afb8b78006df56123c34a4b99b6462d55e7fdb2baa1552fb89c6719')
# makepkg does not understand .deb, so unpack it by hand in package().
noextract=("$_pkgname-$pkgver.deb")
package() {
bsdtar -xf "$_pkgname-$pkgver.deb" -C "$srcdir" data.tar.xz
bsdtar -xf "$srcdir/data.tar.xz" -C "$pkgdir"
# Upstream ships the launcher only under /opt; Debian's postinst makes this
# symlink through update-alternatives, which Arch has no equivalent for.
install -dm755 "$pkgdir/usr/bin"
ln -sf /opt/Jorvik/jorvik "$pkgdir/usr/bin/$_pkgname"
# A Debian changelog is not something an Arch package should carry.
rm -rf "$pkgdir/usr/share/doc"
# Electron's setuid sandbox helper. Left 0755 here and fixed in .install,
# because a setuid bit inside a package is a footgun if the file is ever
# replaced; see the comment there.
chmod 0755 "$pkgdir/opt/Jorvik/chrome-sandbox"
}
|