summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9a99cf7ad3e794e958313fce820384319fa6010d (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
# Maintainer: Felix Golatofski <contact@xdfr.de>

pkgname=freifunk-meet-desktop
pkgver=2.0.26
pkgrel=1
pkgdesc="Freifunk Meet desktop application"
arch=('x86_64')
url="https://github.com/freifunkMUC/jitsi-meet-electron"
license=('Apache')
conflicts=('freifunk-meet-desktop-bin')
replaces=('freifunk-meet-desktop-bin')
depends=('gtk3'
         'libxss'
         'nss')
makedepends=('coreutils'
             'npm')
backup=()

options=(!strip)
source=("${pkgname}_${pkgver}.tar.gz::https://github.com/freifunkMUC/jitsi-meet-electron/archive/v${pkgver}.tar.gz"
        'freifunk-meet-desktop.desktop')
sha256sums=('ff610da326fff8fe7bbf8e41af00e1bc63586d0439590c147803f106e8bb4db4'
            '855d3b8031bfbb14d4bb02aaa9f2fe40ae77e0cc6eac4f1b918562f85b6c50f7')

prepare() {
	cd jitsi-meet-electron-${pkgver}/

	# TODO: create a pcakage for jitsi-meet-elecctron-utils and depend on it instead
	# of letting this pull it down from git.
	npm install
}

build() {
	cd jitsi-meet-electron-${pkgver}/
	npm run dist
}

package() {
	cd jitsi-meet-electron-${pkgver}/

	install -d     "${pkgdir}/opt/${pkgname}"
	cp -r          dist/linux-unpacked/* "${pkgdir}/opt/${pkgname}"

	for icon in `ls resources/icons/*.png`; do
		size=$(basename $icon)
		size=${size#"icon_"}
		size=${size%".png"}
		install -dm755 "${pkgdir}/usr/share/icons/hicolor/${size}/apps"
		install -Dm644 "${icon}" "${pkgdir}/usr/share/icons/hicolor/${size}/apps/ffmuc-meet-desktop.png"
	done

	install -d     "${pkgdir}/usr/bin"
	ln -s          "/opt/${pkgname}/ffmuc-meet" "${pkgdir}/usr/bin/ffmuc-meet"

	install -d     "${pkgdir}/usr/share/applications"
	install -Dm644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
}