New package: mattermost-desktop-4.5.2

This commit is contained in:
Artem Zhurikhin 2020-07-25 19:19:26 +03:00 committed by Jürgen Buchmüller
parent d5d709c38c
commit 5179f2633f
4 changed files with 64 additions and 0 deletions

View file

@ -0,0 +1,7 @@
--- electron-builder.json.orig 2020-07-25 12:41:25.091865817 +0300
+++ electron-builder.json 2020-07-25 12:41:41.889843654 +0300
@@ -38,3 +38 @@
- "deb",
- "tar.gz",
- "appimage"
+ "dir"

View file

@ -0,0 +1,17 @@
--- electron-builder.json.orig 2020-07-25 12:46:12.470489136 +0300
+++ electron-builder.json 2020-07-25 12:47:22.490397616 +0300
@@ -52 +52,2 @@
- "README.md"
+ "README.md",
+ "Mattermost.desktop"
--- resources/linux/Mattermost.desktop.orig 1970-01-01 03:00:00.000000000 +0300
+++ resources/linux/Mattermost.desktop 2020-07-25 12:49:12.938253258 +0300
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Name=Mattermost
+Comment=Mattermost Desktop application for Linux
+Exec=/usr/bin/mattermost-desktop/mattermost-desktop
+Terminal=false
+Type=Application
+Icon=/usr/libexec/mattermost-desktop/icon.svg
+Categories=Network;InstantMessaging;

View file

@ -0,0 +1,4 @@
--- .npmrc.orig 1970-01-01 03:00:00.000000000 +0300
+++ .npmrc 2020-07-25 19:10:22.837221360 +0300
@@ -0,0 +1 @@
+unsafe-perm = true

View file

@ -0,0 +1,36 @@
# Template file for 'mattermost-desktop'
pkgname=mattermost-desktop
version=4.5.2
revision=1
archs="x86_64 i686"
wrksrc="desktop-${version}"
# electron-builder needs GNU tar
hostmakedepends="git nodejs-lts-10 python libicns GraphicsMagick xz tar"
makedepends="libnotify-devel"
short_desc="Team messaging app, an open source Slack alternative"
maintainer="Artem Zhurikhin <ashpool@xecut.net>"
license="Apache-2.0"
homepage="https://mattermost.com/"
distfiles="https://github.com/mattermost/desktop/archive/v${version}.tar.gz"
checksum=17e32346592d175f091a4f12068e0cfc5cfd20ed7894f88bb5b54b2eb6eac74a
pre_build() {
npm install
}
do_build() {
npm run build
npm run package:linux
}
do_install() {
case $XBPS_TARGET_MACHINE in
x86_64) cd release/linux-unpacked ;;
i686) cd release/linux-ia32-unpacked ;;
esac
vmkdir usr/libexec/${pkgname}
vcopy . usr/libexec/${pkgname}
vinstall Mattermost.desktop 644 usr/share/applications
vmkdir usr/bin
ln -s ../libexec/mattermost-desktop ${DESTDIR}/usr/bin/mattermost-desktop
}