summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMonika Schrenk2017-02-12 23:50:58 +0000
committerMonika Schrenk2017-02-12 23:50:58 +0000
commit27b9e5832f7d826d48f4978d631bb2725494172c (patch)
tree9a860e598e83c34025c7f4b1641f1236a3a4c9f9
downloadaur-27b9e5832f7d826d48f4978d631bb2725494172c.tar.gz
Initial import - version 5.0.1
-rw-r--r--.SRCINFO25
-rw-r--r--PKGBUILD46
-rw-r--r--studio-3t23
-rw-r--r--studio-3t.desktop9
4 files changed, 103 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..ab7c30cfb35
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,25 @@
+pkgbase = studio-3t
+ pkgdesc = The world's favorite IDE for working with MongoDB, formerly known as MongoChef.
+ pkgver = 5.0.1
+ pkgrel = 1
+ url = https://studio3t.com
+ arch = i686
+ arch = x86_64
+ license = custom
+ makedepends = unzip
+ depends = java-runtime-openjdk=8
+ depends = java-openjfx
+ depends = gtk2
+ provides = studio-3t
+ replaces = mongochef
+ source = studio-3t.desktop
+ source = studio-3t
+ sha256sums = fa04aeeca55ea61163200b998d63fd73733860ff08fe58b734e4cf356f4a0786
+ sha256sums = c84a8462407ac2d300c34477c05c9545b7359cd1842879c2c321c88343b754f5
+ source_i686 = studio-3t-5.0.1-x86.tar.gz::https://download.studio3t.com/studio-3t/linux/5.0.1/studio-3t-linux-x86.tar.gz
+ sha256sums_i686 = b20fd9c43798f2ebdd6b5d04caab88dca2d9674c2c90f62c6d48d87a7b37b123
+ source_x86_64 = studio-3t-5.0.1-x64.tar.gz::https://download.studio3t.com/studio-3t/linux/5.0.1/studio-3t-linux-x64.tar.gz
+ sha256sums_x86_64 = 72e6e8a695c908177fdb6aedd6b07d7516b6125fb2d0fad9cc1128150cfb7eb9
+
+pkgname = studio-3t
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..130d247d051
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,46 @@
+# Maintainer: Monika Schrenk <moni@random-access.org>
+
+pkgname=studio-3t
+pkgver=5.0.1
+pkgrel=1
+pkgdesc="The world's favorite IDE for working with MongoDB, formerly known as MongoChef."
+arch=('i686' 'x86_64')
+url="https://studio3t.com"
+license=("custom")
+depends=('java-runtime-openjdk=8' 'java-openjfx' 'gtk2')
+makedepends=('unzip')
+provides=('studio-3t')
+replaces=('mongochef')
+
+source=("${pkgname}.desktop" "${pkgname}")
+source_i686=("$pkgname-$pkgver-x86.tar.gz::https://download.studio3t.com/studio-3t/linux/${pkgver}/${pkgname}-linux-x86.tar.gz")
+source_x86_64=("$pkgname-$pkgver-x64.tar.gz::https://download.studio3t.com/studio-3t/linux/${pkgver}/${pkgname}-linux-x64.tar.gz")
+
+sha256sums=('fa04aeeca55ea61163200b998d63fd73733860ff08fe58b734e4cf356f4a0786'
+'c84a8462407ac2d300c34477c05c9545b7359cd1842879c2c321c88343b754f5')
+sha256sums_i686=('b20fd9c43798f2ebdd6b5d04caab88dca2d9674c2c90f62c6d48d87a7b37b123')
+sha256sums_x86_64=('72e6e8a695c908177fdb6aedd6b07d7516b6125fb2d0fad9cc1128150cfb7eb9')
+
+prepare() {
+ unzip -j ${srcdir}/${pkgname}-${pkgver}-linux-*/lib/data-man-mongodb-ent-${pkgver}.jar "t3/dataman/icons/mac/512.png" -d "./"
+ unzip -j ${srcdir}/${pkgname}-${pkgver}-linux-*/lib/data-man-mongodb-ent-${pkgver}.jar "t3/utils/gui/3T-EULA.txt" -d "./"
+}
+
+package() {
+ cd ${pkgdir}
+ mkdir -p opt/
+
+ cp -r ${srcdir}/${pkgname}-${pkgver}-linux-*/lib opt/${pkgname}
+
+ ## add startup script
+ install -D -m 755 $srcdir/${pkgname} usr/bin/${pkgname}
+
+ ## add desktop entry
+ install -D -m 644 ${srcdir}/${pkgname}.desktop usr/share/applications/${pkgname}.desktop
+
+ ## add application icon
+ install -D -m 644 ${srcdir}/512.png usr/share/pixmaps/${pkgname}.png
+
+ ## add license
+ install -D -m 644 ${srcdir}/3T-EULA.txt usr/share/licenses/${pkgname}/3T-EULA.txt
+}
diff --git a/studio-3t b/studio-3t
new file mode 100644
index 00000000000..e2c22826295
--- /dev/null
+++ b/studio-3t
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+## Get path to a JDK >= 8. If default JDK does not match, choose the first ##
+## match from "archlinux-java status" list ##
+java_default_version=`archlinux-java get | sed 's/[^0-9]//g'`
+if [ "$java_default_version" -ge 8 ]
+then
+ JDK_PATH="java"
+ ## echo "Using default JDK / JRE: "`archlinux-java get`
+else
+ java_versions=`archlinux-java status | grep -oe java-[8-9]*-[a-z]*`
+ JDK_PATH="/usr/lib/jvm/"`echo $java_versions | cut -f 1 -d " " | sed 's_/jre__g'`"/jre/bin/java"
+ echo "Default java version is smaller than 8."
+ echo "Consider changing the default java version to 8 with archlinux-java."
+ echo "Using JDK / JRE 8 at "$JDK_PATH" for mongochef execution."
+fi
+
+# JavaFX charts rendering requires this to be set.
+export SWT_GTK3=0
+
+# Launch the java program
+$JDK_PATH -Dprism.order=sw -jar /opt/studio-3t/data-man-mongodb-ent-*.jar
+
diff --git a/studio-3t.desktop b/studio-3t.desktop
new file mode 100644
index 00000000000..86013c1f093
--- /dev/null
+++ b/studio-3t.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Exec=/usr/bin/studio-3t
+Type=Application
+Terminal=false
+Icon=mongochef
+Categories=Development;
+
+Name=MongoChef
+GenericName=MongoDB Administration Tool