[arch-commits] Commit in mattermost-desktop/repos/community-x86_64 (6 files)
Caleb Maclennan
alerque at gemini.archlinux.org
Mon May 16 13:46:35 UTC 2022
Date: Monday, May 16, 2022 @ 13:46:34
Author: alerque
Revision: 1207541
archrelease: copy trunk to community-x86_64
Added:
mattermost-desktop/repos/community-x86_64/PKGBUILD
(from rev 1207540, mattermost-desktop/trunk/PKGBUILD)
mattermost-desktop/repos/community-x86_64/mattermost-desktop.sh
(from rev 1207540, mattermost-desktop/trunk/mattermost-desktop.sh)
mattermost-desktop/repos/community-x86_64/mattermost.desktop
(from rev 1207540, mattermost-desktop/trunk/mattermost.desktop)
Deleted:
mattermost-desktop/repos/community-x86_64/PKGBUILD
mattermost-desktop/repos/community-x86_64/mattermost-desktop.sh
mattermost-desktop/repos/community-x86_64/mattermost.desktop
-----------------------+
PKGBUILD | 164 ++++++++++++++++++++++++------------------------
mattermost-desktop.sh | 4 -
mattermost.desktop | 18 ++---
3 files changed, 93 insertions(+), 93 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-05-16 13:46:22 UTC (rev 1207540)
+++ PKGBUILD 2022-05-16 13:46:34 UTC (rev 1207541)
@@ -1,82 +0,0 @@
-# Maintainer: Caleb Maclennan <caleb at alerque.com>
-# Maintainer: Bruno Pagani <archange at archlinux dot org>
-# Contributor: William Gathoye <william + aur at gathoye dot be>
-# Contributor: Aleksandar Trifunović <akstrfn at gmail dot com>
-# Contributor: Jan Was <janek dot jan at gmail dot com>
-# Contributor: AUR[Severus]
-
-pkgname=mattermost-desktop
-pkgver=5.0.4
-pkgrel=1
-pkgdesc='Mattermost Desktop application'
-arch=(x86_64)
-url="https://github.com/${pkgname/-//}"
-license=(Apache)
-_electron=electron14
-_builderVersion='^22.14.5'
-depends=($_electron)
-makedepends=(git
- gendesk
- jq
- moreutils
- npm)
-_archive="${pkgname#*-}-$pkgver"
-source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz"
- "$pkgname.sh")
-sha256sums=('a33689b517719630b7211722015972f194b1b645c9b198ef35a0772c824a760c'
- '1c2bf48b6397d04a5a536c5c9f4960db53249c838c380f03f808c612b00ba4c6')
-
-_npmargs="--cache '$srcdir/npm-cache' --no-audit --no-fund"
-
-prepare() {
- gendesk -q -f -n \
- --pkgname "$pkgname" \
- --pkgdesc "$pkgdesc" \
- --name Mattermost \
- --categories 'Network;InstantMessaging;' \
- --mimetypes 'x-scheme-handler/mattermost;' \
- --custom StartupWMClass="$pkgname"
- cd "$_archive"
- sed -i -e "s/git rev-parse --short HEAD/echo $pkgver/" webpack.config.base.js
- sed -e "s/@ELECTRON@/$_electron/" "../$pkgname.sh" > "$pkgname.sh"
- sed -i -e 's#resources/linux#src/assets/linux#' electron-builder.json
- sed -i -e 's/--ia32//g;s/--mac//g;s/--arm64//g;s/--win//g;s/--universal//g' package.json
- local electronDist="/usr/lib/$_electron"
- local electronVersion="$(<"$electronDist"/version)"
- # Do not build tar.gz, nor .deb or appimages
- # Use electron version that matches system package
- jq '
- .linux .target |= ["dir"] |
- {
- "electronDist": $electronDist,
- "electronVersion": $electronVersion
- } + .
- ' \
- --arg electronDist "$electronDist" \
- --arg electronVersion "$electronVersion" \
- electron-builder.json |
- sponge electron-builder.json
- jq '
- del(.devDependencies["electron"]) |
- .devDependencies["electron-builder"] = $builderVersion
- ' \
- --arg electronVersion "$electronVersion" \
- --arg builderVersion "$_builderVersion" \
- package.json |
- sponge package.json
- npm $_npmargs install
-}
-
-build() {
- cd "$_archive"
- npm $_npmargs --offline run package:linux
-}
-
-package() {
- cd "$_archive"
- install -Dm0644 -t "$pkgdir/usr/lib/$pkgname/" release/linux*unpacked/resources/app.asar
- install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE.txt
- install -Dm0644 src/assets/linux/icon.svg "$pkgdir/usr/share/icons/hicolor/scalable/apps/$pkgname.svg"
- install -Dm0755 "$pkgname.sh" "$pkgdir/usr/bin/$pkgname"
- install -Dm0644 -t "$pkgdir/usr/share/applications/" "../$pkgname.desktop"
-}
Copied: mattermost-desktop/repos/community-x86_64/PKGBUILD (from rev 1207540, mattermost-desktop/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-05-16 13:46:34 UTC (rev 1207541)
@@ -0,0 +1,82 @@
+# Maintainer: Caleb Maclennan <caleb at alerque.com>
+# Maintainer: Bruno Pagani <archange at archlinux dot org>
+# Contributor: William Gathoye <william + aur at gathoye dot be>
+# Contributor: Aleksandar Trifunović <akstrfn at gmail dot com>
+# Contributor: Jan Was <janek dot jan at gmail dot com>
+# Contributor: AUR[Severus]
+
+pkgname=mattermost-desktop
+pkgver=5.1.0
+pkgrel=1
+pkgdesc='Mattermost Desktop application'
+arch=(x86_64)
+url="https://github.com/${pkgname/-//}"
+license=(Apache)
+_electron=electron # 18
+_builderVersion='^23.0.3'
+depends=($_electron)
+makedepends=(git
+ gendesk
+ jq
+ moreutils
+ npm)
+_archive="${pkgname#*-}-$pkgver"
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz"
+ "$pkgname.sh")
+sha256sums=('2a343739afc52d996a24d9259df09f93cf593639858b22e63bf70c9618a9035e'
+ '1c2bf48b6397d04a5a536c5c9f4960db53249c838c380f03f808c612b00ba4c6')
+
+_npmargs="--cache '$srcdir/npm-cache' --no-audit --no-fund"
+
+prepare() {
+ gendesk -q -f -n \
+ --pkgname "$pkgname" \
+ --pkgdesc "$pkgdesc" \
+ --name Mattermost \
+ --categories 'Network;InstantMessaging;' \
+ --mimetypes 'x-scheme-handler/mattermost;' \
+ --custom StartupWMClass="$pkgname"
+ cd "$_archive"
+ sed -i -e "s/git rev-parse --short HEAD/echo $pkgver/" webpack.config.base.js
+ sed -e "s/@ELECTRON@/$_electron/" "../$pkgname.sh" > "$pkgname.sh"
+ sed -i -e 's#resources/linux#src/assets/linux#' electron-builder.json
+ sed -i -e 's/--ia32//g;s/--mac//g;s/--arm64//g;s/--win//g;s/--universal//g' package.json
+ local electronDist="/usr/lib/$_electron"
+ local electronVersion="$(<"$electronDist"/version)"
+ # Do not build tar.gz, nor .deb or appimages
+ # Use electron version that matches system package
+ jq '
+ .linux .target |= ["dir"] |
+ {
+ "electronDist": $electronDist,
+ "electronVersion": $electronVersion
+ } + .
+ ' \
+ --arg electronDist "$electronDist" \
+ --arg electronVersion "$electronVersion" \
+ electron-builder.json |
+ sponge electron-builder.json
+ jq '
+ del(.devDependencies["electron"]) |
+ .devDependencies["electron-builder"] = $builderVersion
+ ' \
+ --arg electronVersion "$electronVersion" \
+ --arg builderVersion "$_builderVersion" \
+ package.json |
+ sponge package.json
+ npm $_npmargs install
+}
+
+build() {
+ cd "$_archive"
+ npm $_npmargs --offline run package:linux
+}
+
+package() {
+ cd "$_archive"
+ install -Dm0644 -t "$pkgdir/usr/lib/$pkgname/" release/linux*unpacked/resources/app.asar
+ install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE.txt
+ install -Dm0644 src/assets/linux/icon.svg "$pkgdir/usr/share/icons/hicolor/scalable/apps/$pkgname.svg"
+ install -Dm0755 "$pkgname.sh" "$pkgdir/usr/bin/$pkgname"
+ install -Dm0644 -t "$pkgdir/usr/share/applications/" "../$pkgname.desktop"
+}
Deleted: mattermost-desktop.sh
===================================================================
--- mattermost-desktop.sh 2022-05-16 13:46:22 UTC (rev 1207540)
+++ mattermost-desktop.sh 2022-05-16 13:46:34 UTC (rev 1207541)
@@ -1,2 +0,0 @@
-#!/bin/sh
-exec @ELECTRON@ /usr/lib/mattermost-desktop/app.asar --disable-dev-mode "$@"
Copied: mattermost-desktop/repos/community-x86_64/mattermost-desktop.sh (from rev 1207540, mattermost-desktop/trunk/mattermost-desktop.sh)
===================================================================
--- mattermost-desktop.sh (rev 0)
+++ mattermost-desktop.sh 2022-05-16 13:46:34 UTC (rev 1207541)
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec @ELECTRON@ /usr/lib/mattermost-desktop/app.asar --disable-dev-mode "$@"
Deleted: mattermost.desktop
===================================================================
--- mattermost.desktop 2022-05-16 13:46:22 UTC (rev 1207540)
+++ mattermost.desktop 2022-05-16 13:46:34 UTC (rev 1207541)
@@ -1,9 +0,0 @@
-[Desktop Entry]
-Name=Mattermost
-Comment=Mattermost Desktop application for Linux
-Exec=/usr/bin/mattermost-desktop
-Terminal=false
-Type=Application
-Icon=mattermost-desktop
-Categories=Network;InstantMessaging;
-MimeType=x-scheme-handler/mattermost;
Copied: mattermost-desktop/repos/community-x86_64/mattermost.desktop (from rev 1207540, mattermost-desktop/trunk/mattermost.desktop)
===================================================================
--- mattermost.desktop (rev 0)
+++ mattermost.desktop 2022-05-16 13:46:34 UTC (rev 1207541)
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Name=Mattermost
+Comment=Mattermost Desktop application for Linux
+Exec=/usr/bin/mattermost-desktop
+Terminal=false
+Type=Application
+Icon=mattermost-desktop
+Categories=Network;InstantMessaging;
+MimeType=x-scheme-handler/mattermost;
More information about the arch-commits
mailing list