summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO30
-rw-r--r--PKGBUILD65
-rw-r--r--rdm.desktop10
-rw-r--r--rdm.sh3
4 files changed, 108 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..f61da43f54c
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,30 @@
+# Generated by mksrcinfo v8
+# Sat Feb 6 01:37:04 UTC 2016
+pkgbase = redis-desktop-manager
+ pkgdesc = Cross-platform open source Redis DB management tool
+ pkgver = 0.8.3
+ pkgrel = 1
+ url = http://redisdesktop.com/
+ arch = x86_64
+ license = LGPLv2.1
+ makedepends = git
+ makedepends = subversion
+ makedepends = gcc
+ depends = qt5-base
+ depends = qt5-imageformats
+ depends = qt5-tools
+ depends = qt5-declarative
+ depends = qt5-quickcontrols
+ depends = qt5-graphicaleffects
+ depends = qt5-svg
+ depends = libssh2
+ conflicts = redis-desktop-manager-bin
+ source = rdm::git://github.com/uglide/RedisDesktopManager.git#tag=0.8.3
+ source = rdm.sh
+ source = rdm.desktop
+ sha256sums = SKIP
+ sha256sums = f469d9a5adce723904efe0f1b1db5d79807410f90aafb117f18ae108d8b2d391
+ sha256sums = 4fac85cec4a7abe7254ff3a6f0382d9a6f2b712372ecbd74474a2f8efe9c4e3c
+
+pkgname = redis-desktop-manager
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..40365098cb2
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,65 @@
+# Maintainer: Vyacheslav Konovalov <vyachkonovalov@gmail.com>
+
+pkgname=redis-desktop-manager
+pkgver=0.8.3
+pkgrel=1
+pkgdesc='Cross-platform open source Redis DB management tool'
+arch=('x86_64')
+url="http://redisdesktop.com/"
+license=('LGPLv2.1')
+depends=('qt5-base' 'qt5-imageformats' 'qt5-tools' 'qt5-declarative' 'qt5-quickcontrols' 'qt5-graphicaleffects' 'qt5-svg' 'libssh2')
+makedepends=('git' 'subversion' 'gcc')
+conflicts=('redis-desktop-manager-bin')
+source=("rdm::git://github.com/uglide/RedisDesktopManager.git#tag=0.8.3"
+ 'rdm.sh'
+ 'rdm.desktop')
+sha256sums=('SKIP'
+ 'f469d9a5adce723904efe0f1b1db5d79807410f90aafb117f18ae108d8b2d391'
+ '4fac85cec4a7abe7254ff3a6f0382d9a6f2b712372ecbd74474a2f8efe9c4e3c')
+
+prepare() {
+ cd rdm/
+ git submodule update --init --recursive
+
+ python2 build/utils/set_version.py "$pkgver-120" > src/version.h
+ python2 build/utils/set_version.py "$pkgver-120" > 3rdparty/crashreporter/src/version.h
+
+ cd 3rdparty/gbreakpad
+ svn checkout http://linux-syscall-support.googlecode.com/svn/trunk/lss/ src/third_party/lss
+ touch README
+}
+
+build() {
+ rm -rf $srcdir/rdm/bin
+
+ cd $srcdir/rdm/3rdparty/crashreporter
+ qmake CONFIG+=release DESTDIR="$srcdir/rdm/bin/linux/release" QMAKE_LFLAGS_RPATH=""
+ make -j 2
+
+ cd $srcdir/rdm/3rdparty/gbreakpad
+ ./configure
+ make -j 2
+
+ cd $srcdir/rdm/src
+ qmake && make
+}
+
+package() {
+ _instdir="$srcdir/rdm/bin/linux/release"
+ _bindir="$pkgdir/usr/share/redis-desktop-manager/bin"
+
+ mkdir -p "${_bindir}"
+ mkdir "$pkgdir/usr/share/licenses"
+ mkdir "$pkgdir/usr/share/pixmaps"
+ mkdir "$pkgdir/usr/share/applications"
+
+ install -Dm644 "$srcdir/rdm/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ install -Dm755 "${_instdir}/rdm" "${_bindir}/rdm"
+ install -Dm755 "${_instdir}/crashreporter" "${_bindir}/crashreporter"
+ install -Dm755 "$srcdir/rdm.sh" "${_bindir}/rdm.sh"
+ install -Dm644 "$srcdir/rdm/src/resources/rdm.png" "$pkgdir/usr/share/pixmaps/rdm.png"
+ install -Dm644 "$srcdir/rdm.desktop" "$pkgdir/usr/share/applications/rdm.desktop"
+
+ mkdir "$pkgdir/usr/bin"
+ ln -s '/usr/share/redis-desktop-manager/bin/rdm.sh' "$pkgdir/usr/bin/rdm"
+}
diff --git a/rdm.desktop b/rdm.desktop
new file mode 100644
index 00000000000..0a5f0f2cf12
--- /dev/null
+++ b/rdm.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Version=1.0
+Name=Redis Desktop Manager
+Comment=Redis Desktop Manager
+Type=Application
+Categories=Development;
+Exec=rdm
+Terminal=false
+StartupNotify=true
+Icon=rdm.png
diff --git a/rdm.sh b/rdm.sh
new file mode 100644
index 00000000000..b09e7bca561
--- /dev/null
+++ b/rdm.sh
@@ -0,0 +1,3 @@
+#!/bin/bash
+DIR=$(dirname "$(readlink -f "$0")")
+$DIR/rdm