diff options
author | Daniel Peukert | 2020-01-05 20:49:08 +0100 |
---|---|---|
committer | Daniel Peukert | 2020-01-05 20:49:08 +0100 |
commit | 6763c108f84d9a1d0e97c27855c0087fde8f933a (patch) | |
tree | 3cb3c05972e56e658860eb36729b9daab4ea7629 | |
download | aur-6763c108f84d9a1d0e97c27855c0087fde8f933a.tar.gz |
Renamed mongodb-compass-* to mongodb-compass-*-bin
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | .editorconfig | 8 | ||||
-rw-r--r-- | .gitignore | 14 | ||||
-rw-r--r-- | PKGBUILD | 29 | ||||
-rw-r--r-- | launch.sh | 2 |
5 files changed, 69 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..6b2e51f2eaec --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = mongodb-compass-isolated-bin + pkgdesc = The official GUI for MongoDB - Isolated Edition - binary version + pkgver = 1.20.4 + pkgrel = 1 + url = https://www.mongodb.com/products/compass + arch = x86_64 + license = custom:SSPL + depends = electron3-bin + depends = krb5 + depends = libsecret + source = mongodb-compass-isolated-bin-1.20.4-1.rpm::https://github.com/mongodb-js/compass/releases/download/v1.20.4/mongodb-compass-isolated-1.20.4.x86_64.rpm + source = launch.sh + sha256sums = 8afd91fa38ef759cc8287aa3e06c8c47c8a633aa43bc9e838c588fd520a9ec01 + sha256sums = 1bf3dd5e9363e750f4099acab9c8e22af7dc8645215d3fc4ed13abb0d38c5137 + +pkgname = mongodb-compass-isolated-bin diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 000000000000..a467ee9a97a6 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,8 @@ +root = true + +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +indent_style = tab +tab_width = 4 diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..82b3c183d5d4 --- /dev/null +++ b/.gitignore @@ -0,0 +1,14 @@ +# from https://github.com/github/gitignore/blob/master/ArchLinuxPackages.gitignore +*.tar +*.tar.* +*.rpm +*.jar +*.exe +*.msi +*.zip +*.tgz +*.log +*.log.* +*.sig + +*/ diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..07ce86b4080b --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,29 @@ +# Maintainer: Daniel Peukert <dan.peukert@gmail.com> +_pkgname='mongodb-compass-isolated' +pkgname="$_pkgname-bin" +_pkgver='1.20.4' +pkgver="$(printf '%s' "$_pkgver" | tr '-' '.')" +pkgrel='1' +pkgdesc='The official GUI for MongoDB - Isolated Edition - binary version' +arch=('x86_64') +url='https://www.mongodb.com/products/compass' +license=('custom:SSPL') +depends=('electron3-bin' 'krb5' 'libsecret') +source=( + "$pkgname-$pkgver-$pkgrel.rpm::https://github.com/mongodb-js/compass/releases/download/v$_pkgver/$_pkgname-$_pkgver.x86_64.rpm" + 'launch.sh' +) +sha256sums=('8afd91fa38ef759cc8287aa3e06c8c47c8a633aa43bc9e838c588fd520a9ec01' + '1bf3dd5e9363e750f4099acab9c8e22af7dc8645215d3fc4ed13abb0d38c5137') + +package() { + cd "$srcdir/" + install -Dm644 "usr/share/$_pkgname/resources/app.asar" "$pkgdir/usr/lib/$_pkgname/app.asar" + install -dm755 "$pkgdir/usr/lib/$_pkgname/app.asar.unpacked/" + cp -r --no-preserve=ownership --preserve=mode "usr/share/$_pkgname/resources/app.asar.unpacked/"* "$pkgdir/usr/lib/$_pkgname/app.asar.unpacked/" + install -Dm755 "launch.sh" "$pkgdir/usr/bin/$_pkgname" + install -Dm644 "usr/share/$_pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + install -Dm644 "usr/share/$_pkgname/LICENSES.chromium.html" "$pkgdir/usr/share/licenses/$pkgname/LICENSES.chromium.html" + install -Dm644 "usr/share/applications/$_pkgname.desktop" "$pkgdir/usr/share/applications/$_pkgname.desktop" + install -Dm644 "usr/share/pixmaps/$_pkgname.png" "$pkgdir/usr/share/pixmaps/$_pkgname.png" +} diff --git a/launch.sh b/launch.sh new file mode 100644 index 000000000000..020b276f4f9d --- /dev/null +++ b/launch.sh @@ -0,0 +1,2 @@ +#!/bin/sh +exec electron3 "/usr/lib/$(basename "$0")/app.asar" "$@" |