summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorhyness2015-10-28 09:56:00 -0700
committerhyness2015-10-28 09:56:00 -0700
commitd0e7e53cc8f108561d1536a9399693bebe262e65 (patch)
tree53e4e38d019ee8ba37e2d8b11222356701852c96
downloadaur-d0e7e53cc8f108561d1536a9399693bebe262e65.tar.gz
Initial commit
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD39
-rwxr-xr-xsquirrel-sql4
-rw-r--r--squirrel-sql.desktop12
-rw-r--r--squirrel-sql.install7
5 files changed, 82 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..2b7e9dbb181
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+pkgbase = squirrel-sql
+ pkgdesc = A Java SQL client for any JDBC compliant database
+ pkgver = 3.7
+ pkgrel = 1
+ url = http://http://www.squirrelsql.org/
+ install = squirrel-sql.install
+ arch = i686
+ arch = x86_64
+ license = GPL
+ makedepends = unzip
+ depends = java-runtime
+ source = http://downloads.sourceforge.net/squirrel-sql/squirrelsql-3.7-optional.zip
+ source = squirrel-sql
+ source = squirrel-sql.desktop
+ md5sums = 18417b6044bbaa5293f1e33ac6cd8de2
+ md5sums = 13fcedb38028ddafae5d5d4526dad5a3
+ md5sums = 14f0b383472e67040112c446cd2dc3d4
+
+pkgname = squirrel-sql
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..291cfccfc49
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,39 @@
+# Contributor: Hy Goldsher aka hyness <hyness-at-gmail>
+# Maintainer: Hy Goldsher aka hyness <hyness-at-gmail>
+pkgname=squirrel-sql
+pkgver=3.7
+pkgrel=1
+pkgdesc="A Java SQL client for any JDBC compliant database"
+arch=('i686' 'x86_64')
+url="http://http://www.squirrelsql.org/"
+license=('GPL')
+makedepends=('unzip')
+depends=('java-runtime')
+arch=('i686' 'x86_64')
+source=(http://downloads.sourceforge.net/squirrel-sql/squirrelsql-$pkgver-optional.zip $pkgname $pkgname.desktop)
+install=$pkgname.install
+md5sums=('18417b6044bbaa5293f1e33ac6cd8de2'
+ '13fcedb38028ddafae5d5d4526dad5a3'
+ '14f0b383472e67040112c446cd2dc3d4')
+package() {
+ _src=$srcdir/squirrelsql-$pkgver-optional
+
+ # Create directories
+ install -d $pkgdir/usr/share/java/$pkgname/{icons,lib}
+
+ # Create startup script
+ install -Dm755 $srcdir/squirrel-sql $pkgdir/usr/bin/squirrel-sql
+
+ # Install files
+ install -Dm755 $srcdir/squirrel-sql $pkgdir/usr/bin/squirrel-sql
+ install -m644 $_src/{squirrel-sql.jar,*.properties} $pkgdir/usr/share/java/$pkgname/
+ install -m755 $_src/{restore,$pkgname}.sh $pkgdir/usr/share/java/$pkgname/
+ install $_src/icons/*.* $pkgdir/usr/share/java/$pkgname/icons/
+ install $_src/lib/*.* $pkgdir/usr/share/java/$pkgname/lib/
+ cp -a $_src/plugins $pkgdir/usr/share/java/$pkgname/
+
+ # Create desktop and icon
+ install -Dm644 $srcdir/$pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop
+ install -Dm644 $_src/icons/acorn.xpm $pkgdir/usr/share/icons/hicolor/32x32/apps/$pkgname.xpm
+}
+
diff --git a/squirrel-sql b/squirrel-sql
new file mode 100755
index 00000000000..c8905a28c9f
--- /dev/null
+++ b/squirrel-sql
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+cd /usr/share/java/squirrel-sql
+sh ./squirrel-sql.sh
diff --git a/squirrel-sql.desktop b/squirrel-sql.desktop
new file mode 100644
index 00000000000..0e096b8b62d
--- /dev/null
+++ b/squirrel-sql.desktop
@@ -0,0 +1,12 @@
+
+[Desktop Entry]
+Type=Application
+Version=1.0
+Name=Squirrel Sql
+GenericName=Database Manager
+Comment=Graphical Java program to manage JDBC databases
+Exec=squirrel-sql
+Icon=squirrel-sql
+Terminal=false
+Categories=Development;
+
diff --git a/squirrel-sql.install b/squirrel-sql.install
new file mode 100644
index 00000000000..610827c284c
--- /dev/null
+++ b/squirrel-sql.install
@@ -0,0 +1,7 @@
+post_install() {
+ [[ -x /usr/bin/gtk-update-icon-cache ]] && gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor
+}
+
+post_remove() {
+ [[ -x /usr/bin/gtk-update-icon-cache ]] && gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor
+}