summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorNenad Stojanovikj2017-11-01 11:32:35 +0100
committerNenad Stojanovikj2017-11-01 11:35:57 +0100
commit90e865e915495e7fbe0b19007b95bf5e5026c4be (patch)
tree7de217d1b5a722e3925815bb4ff7fbe205130f60
downloadaur-90e865e915495e7fbe0b19007b95bf5e5026c4be.tar.gz
dbeaver-ce v4.2.4
-rw-r--r--.SRCINFO27
-rw-r--r--PKGBUILD48
-rw-r--r--dbeaver-ce.desktop9
-rw-r--r--dbeaver-ce.install11
4 files changed, 95 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..ad14ee716a5
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,27 @@
+# Generated by mksrcinfo v8
+# Wed Nov 1 10:35:28 UTC 2017
+pkgbase = dbeaver-ce
+ pkgdesc = A free universal database tool for developers and database administrators. This is the community edition.
+ pkgver = 4.2.4
+ pkgrel = 2
+ url = http://dbeaver.jkiss.org/
+ install = dbeaver-ce.install
+ arch = i686
+ arch = x86_64
+ license = GPL
+ depends = java-runtime>=1.6
+ depends = gtk2
+ depends = gtk-update-icon-cache
+ noextract = dbeaver-ce-4.2.4-linux.gtk.x86.tar.gz
+ noextract = dbeaver-ce-4.2.4-linux.gtk.x86_64.tar.gz
+ source = dbeaver-ce.desktop
+ source = dbeaver-ce.install
+ sha256sums = d3244943e1698dc1661585a3230f046bb06157e532f44a18ced575bce964746a
+ sha256sums = a54659b53f1966395f7e296d448c42e1165ec38f5db20181a9e294f775e1c43b
+ source_i686 = http://dbeaver.jkiss.org/files/4.2.4/dbeaver-ce-4.2.4-linux.gtk.x86.tar.gz
+ sha256sums_i686 = c0fd2e93e80d93010a2c40880640132672bc39d2e8e80355b6b49acb7d218e0f
+ source_x86_64 = http://dbeaver.jkiss.org/files/4.2.4/dbeaver-ce-4.2.4-linux.gtk.x86_64.tar.gz
+ sha256sums_x86_64 = a1a03606aca830685f313014e03a167e5326a39e71c5245c33d9bcda525f33cf
+
+pkgname = dbeaver-ce
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..fb8db11448c
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,48 @@
+# Maintainer: Nenad Stojanovikj <nekk1 at live dot com>
+# Previous Maintainer: Joseph Post <joe@jcpst.com>
+# Previous Maintainer: Stephan Wienczny <stephan@wienczny.de>
+
+pkgname=dbeaver-ce
+pkgver=4.2.4
+pkgrel=2
+pkgdesc="A free universal database tool for developers and database administrators. This is the community edition."
+arch=('i686' 'x86_64')
+url="http://dbeaver.jkiss.org/"
+license=("GPL")
+depends=('java-runtime>=1.6' 'gtk2' 'gtk-update-icon-cache')
+install=dbeaver-ce.install
+
+source=(dbeaver-ce.desktop dbeaver-ce.install)
+source_i686=(http://dbeaver.jkiss.org/files/${pkgver}/dbeaver-ce-${pkgver}-linux.gtk.x86.tar.gz)
+source_x86_64=(http://dbeaver.jkiss.org/files/${pkgver}/dbeaver-ce-${pkgver}-linux.gtk.x86_64.tar.gz)
+sha256sums=('d3244943e1698dc1661585a3230f046bb06157e532f44a18ced575bce964746a'
+ 'a54659b53f1966395f7e296d448c42e1165ec38f5db20181a9e294f775e1c43b')
+sha256sums_i686=('c0fd2e93e80d93010a2c40880640132672bc39d2e8e80355b6b49acb7d218e0f')
+sha256sums_x86_64=('a1a03606aca830685f313014e03a167e5326a39e71c5245c33d9bcda525f33cf')
+
+noextract=("dbeaver-ce-${pkgver}-linux.gtk.x86.tar.gz"
+ "dbeaver-ce-${pkgver}-linux.gtk.x86_64.tar.gz")
+
+prepare() {
+ mkdir -p $srcdir/$pkgname
+ cd $srcdir/$pkgname
+ if [ "$CARCH" = "x86_64" ]; then
+ tar -xf "$srcdir/dbeaver-ce-${pkgver}-linux.gtk.x86_64.tar.gz"
+ else
+ tar -xf "$srcdir/dbeaver-ce-${pkgver}-linux.gtk.x86.tar.gz"
+ fi
+}
+
+package() {
+ cd $pkgdir
+ mkdir -p opt/
+ mkdir -p usr/bin
+ mkdir -p usr/share/applications
+ mkdir -p usr/share/icons/hicolor/48x48/apps
+
+ cp -r $srcdir/$pkgname/dbeaver opt/$pkgname
+ chmod +x opt/$pkgname/dbeaver
+ cp opt/$pkgname/icon.xpm usr/share/icons/hicolor/48x48/apps/${pkgname}.xpm
+ ln -s /opt/${pkgname}/dbeaver usr/bin/dbeaver-ce
+ install -m 644 $srcdir/dbeaver-ce.desktop $pkgdir/usr/share/applications/
+}
diff --git a/dbeaver-ce.desktop b/dbeaver-ce.desktop
new file mode 100644
index 00000000000..a25ba83ffa4
--- /dev/null
+++ b/dbeaver-ce.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Exec=/opt/dbeaver-ce/dbeaver
+Type=Application
+Terminal=false
+Icon=dbeaver
+Categories=Development;Java;Database;
+
+Name=DBeaver Community Edition
+GenericName=Database Client
diff --git a/dbeaver-ce.install b/dbeaver-ce.install
new file mode 100644
index 00000000000..8bf02148799
--- /dev/null
+++ b/dbeaver-ce.install
@@ -0,0 +1,11 @@
+post_install() {
+ gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+post_remove() {
+ post_install $1
+}