summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorEmanuel Fernandes2018-12-28 15:13:24 +0000
committerEmanuel Fernandes2018-12-28 15:13:24 +0000
commit33661c0308c1ae3fc1dad30396bcddf82221107b (patch)
tree44e148112d2b7d1efb2d39b17ea9c2054a051408 /PKGBUILD
parentc9206eb9e2b7ee146112f703205543f0f737c3d0 (diff)
downloadaur-33661c0308c1ae3fc1dad30396bcddf82221107b.tar.gz
update to 2018.6.1
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD41
1 files changed, 33 insertions, 8 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 8aca7a777e6..67dfb184359 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,14 +1,16 @@
-# Maintainer: Monika Schrenk <moni@random-access.org>
-# Maintainer: Alexandre Teles (afterSt0rm) <ateles.1@gmail.com>
+# Contributor: Monika Schrenk <moni@random-access.org>
+# Contributor: Alexandre Teles (afterSt0rm) <ateles.1@gmail.com>
+# Maintainer: Emanuel Fernandes <efernandes@tektorque.com>
pkgname=studio-3t
-pkgver=2018.4.4
+pkgver=2018.6.1
pkgrel=1
pkgdesc="The professional workspace for MongoDB (formerly known as MongoChef)"
arch=('i686' 'x86_64')
url="https://studio3t.com"
license=("custom")
-depends=('java-runtime-openjdk=8' 'java-openjfx' 'gtk2')
+depends_i686=('java-runtime-openjdk=8' 'java-openjfx')
+depends=('gtk2')
makedepends=('unzip')
provides=('studio-3t')
replaces=('mongochef')
@@ -16,13 +18,36 @@ replaces=('mongochef')
source_i686=("$pkgname-$pkgver.tar.gz::https://download.studio3t.com/studio-3t/linux/${pkgver}/${pkgname}-linux-x86-no-shell.tar.gz")
source_x86_64=("$pkgname-$pkgver.tar.gz::https://download.studio3t.com/studio-3t/linux/${pkgver}/${pkgname}-linux-x64.tar.gz")
-sha256sums_i686=('da954b206e4d4a2c31f3f297c15de1e3557d7110d4d479c3882fb2ec07d39a64')
-sha256sums_x86_64=('e4ec05cf9da4ea3e22631c1eee96cb738f34064d62c6d8792041015b1dca4da8')
+sha256sums_i686=('d528914393520670132deef47ddbc8f04120f5df81f6fa77cbdeac7cdfa77188')
+sha256sums_x86_64=('f4dde76b4407f63a0ca4f04cac9318aec3ba6be56e54a601810a616f3698dfae')
prepare() {
- tar zxvf ${pkgname}-${pkgver}.tar.gz && for file in *.sh; do mv "$file" ${pkgname}.sh; done && chmod +x ${pkgname}.sh
+ # Extract, rename and add execution permision
+ tar xzvf ${pkgname}-${pkgver}.tar.gz && for file in *.sh; do mv "$file" ${pkgname}.sh; done && chmod +x ${pkgname}.sh
+
+ # unattended mode
+ sh ./${pkgname}.sh -q -dir ${srcdir}/${pkgname} -overwrite
+
+ # Generate Desktop File
+ cd ${srcdir}
+ gendesk -f -n \
+ --name "Studio 3T" \
+ --pkgname "$pkgname" \
+ --pkgdesc "$pkgdesc" \
+ --categories="Science;Education;Developmenti;Application"
}
package() {
- sudo ./${pkgname}.sh
+ cd ${srcdir}
+ mkdir -p $pkgdir/opt/$pkgname
+ install -Dm644 ${pkgname}/.install4j/Studio-3T.png ${pkgdir}/usr/share/pixmaps/${pkgname}.png
+ cp -R ${pkgname}/. ${pkgdir}/opt/${pkgname}
+
+ mkdir -p "$pkgdir/usr/bin/"
+ mkdir -p "$pkgdir/usr/share/applications/"
+ mkdir -p "$pkgdir/usr/share/licenses/$pkgname"
+
+ #cd ${srcdir}
+ ln -s "/opt/$pkgname/Studio-3T" "$pkgdir/usr/bin/$pkgname"
+ install -Dm644 "$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
}