summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b9dbcda11b88f4cd1f9b3685ee548985ae1f9aa2 (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
# Maintainer: Vasya Novikov <vnnn91@yandex.ru> (replace "nnn" with a single "n")

# Note:
# If you want to use the system version of electron, check out jitsi-meet-desktop on AUR.
# This will use the ArchLinux version of electron.
# This will also reduce your installation size and make sure
# you get the latest version of electron when possible.
#
# If you want to use the stand-alone version from npm, this package is the way to go.
# It follows the official guidelines more closely and might be more stable.
#
# If unsure, try the system electron first, and fallback to this package if system won't work.

pkgname=jitsi-meet-electron
pkgver=2.8.5
pkgrel=1
pkgdesc="Jitsi Meet desktop application powered by Electron. Uses npm version of electron"
arch=('any')
url="https://github.com/jitsi/jitsi-meet-electron"
license=('APACHE-2.0')
depends=('npm')
optdepends=(
    'nodejs-webpack: build-time dependency, to avoid re-downloading it'
    'nodejs-webpack-cli: build-time dependency, to avoid re-downloading it'
)
source=(
    jitsi-meet-electron.desktop
    "${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz"
)

sha256sums=('d4ce7836a838be92d6484813737c424074a7747fd1b7eed9fbc061c4b2cd10cf'
            '5c5fb8ff95b820fd891bf71806589bd9973b7ea67e94d1583561dff661276e84')

build() {
    cd "${pkgname}-${pkgver}"
    npm install
    npm run dist
}

package() {
    cd "${pkgname}-${pkgver}"

    mkdir -p -- "$pkgdir"/usr/share/applications
    cp -a --dereference -- ../jitsi-meet-electron.desktop "$pkgdir"/usr/share/applications/

    mkdir -p -- "$pkgdir"/usr/share
    cp -aT -- ./dist/linux-unpacked "$pkgdir"/usr/share/jitsi-meet-electron

    mkdir -p -- "$pkgdir"/usr/bin
    ln -s -- '../share/jitsi-meet-electron/jitsi-meet' "$pkgdir"/usr/bin/jitsi-meet-electron

    install -Dm644 -- resources/icon.png "${pkgdir}/usr/share/pixmaps/${pkgname}.png"
}