summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Peukert2019-08-01 14:20:39 +0200
committerDaniel Peukert2019-08-01 14:20:39 +0200
commit39f518e94b137934b5da916d9d65a900f4998c7c (patch)
tree2c9d2a25af54375c7e104f555363fc9652188637
parentbf2e5e02b0898fc7ac6ddd8ecec76d9c30dc74cd (diff)
downloadaur-39f518e94b137934b5da916d9d65a900f4998c7c.tar.gz
Updated to 1.18.0
-rw-r--r--.SRCINFO11
-rw-r--r--PKGBUILD26
-rw-r--r--launch.sh2
3 files changed, 23 insertions, 16 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 33ae1388dd51..4642770cec42 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,20 +1,17 @@
pkgbase = mongodb-compass-community
pkgdesc = The official GUI for MongoDB - Community Edition
pkgver = 1.18.0
- pkgrel = 2
+ pkgrel = 3
url = https://www.mongodb.com/products/compass
arch = x86_64
license = custom
- depends = nss
- depends = gconf
- depends = libxtst
- depends = alsa-lib
- depends = gtk3
+ depends = electron3
depends = libsecret
- depends = libxss
optdepends = gnome-keyring
source = https://downloads.mongodb.com/compass/mongodb-compass-community-1.18.0.x86_64.rpm
+ source = launch.sh
sha256sums = df1f9f58986b48d76b7b38a352c0fc680543c55a44f7bba05bd1c14fdcff51cd
+ sha256sums = 69f68797ebf485b53e74af1f9f5f2e66d0f4e862ca94b90504d0fc85645e8b9d
pkgname = mongodb-compass-community
diff --git a/PKGBUILD b/PKGBUILD
index c9dd8db0fb6e..09737cc984b2 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,20 +1,28 @@
# Maintainer: Daniel Peukert <dan.peukert@gmail.com>
pkgname='mongodb-compass-community'
pkgver='1.18.0'
-pkgrel='2'
+pkgrel='3'
pkgdesc='The official GUI for MongoDB - Community Edition'
arch=('x86_64')
url='https://www.mongodb.com/products/compass'
license=('custom')
-depends=('nss' 'gconf' 'libxtst' 'alsa-lib' 'gtk3' 'libsecret' 'libxss')
+depends=('electron3' 'libsecret')
optdepends=('gnome-keyring')
-source=('https://downloads.mongodb.com/compass/mongodb-compass-community-1.18.0.x86_64.rpm')
-sha256sums=('df1f9f58986b48d76b7b38a352c0fc680543c55a44f7bba05bd1c14fdcff51cd')
+source=(
+ 'https://downloads.mongodb.com/compass/mongodb-compass-community-1.18.0.x86_64.rpm'
+ 'launch.sh'
+)
+sha256sums=(
+ 'df1f9f58986b48d76b7b38a352c0fc680543c55a44f7bba05bd1c14fdcff51cd'
+ '69f68797ebf485b53e74af1f9f5f2e66d0f4e862ca94b90504d0fc85645e8b9d'
+)
package() {
- rm -r "$srcdir/usr/share/doc/"
- mkdir -p "$srcdir/usr/share/licenses/mongodb-compass-community"
- mv "$srcdir/usr/share/mongodb-compass-community/LICENSE"* "$srcdir/usr/share/licenses/mongodb-compass-community"
-
- cp -r --preserve=mode "$srcdir/usr/" "$pkgdir/usr/"
+ install -Dm644 "$srcdir/usr/share/mongodb-compass-community/resources/app.asar" "$pkgdir/usr/lib/mongodb-compass-community/app.asar"
+ cp -r "$srcdir/usr/share/mongodb-compass-community/resources/app.asar.unpacked/" "$pkgdir/usr/lib/mongodb-compass-community/app.asar.unpacked/"
+ install -Dm755 "$srcdir/launch.sh" "$pkgdir/usr/bin/mongodb-compass-community"
+ install -Dm644 "$srcdir/usr/share/mongodb-compass-community/LICENSE" "$pkgdir/usr/share/licenses/mongodb-compass-community/LICENSE"
+ install -Dm644 "$srcdir/usr/share/mongodb-compass-community/LICENSES.chromium.html" "$pkgdir/usr/share/licenses/mongodb-compass-community/LICENSES.chromium.html"
+ install -Dm644 "$srcdir/usr/share/applications/mongodb-compass-community.desktop" "$pkgdir/usr/share/applications/mongodb-compass-community.desktop"
+ install -Dm644 "$srcdir/usr/share/pixmaps/mongodb-compass-community.png" "$pkgdir/usr/share/pixmaps/mongodb-compass-community.png"
}
diff --git a/launch.sh b/launch.sh
new file mode 100644
index 000000000000..0b8217da745f
--- /dev/null
+++ b/launch.sh
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec electron3 '/usr/lib/mongodb-compass-community/app.asar' "$@"