summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorZeph332015-06-23 13:19:37 +0200
committerZeph332015-06-23 13:19:37 +0200
commitb1c81782d3e078333b39a16d1dea431fd848f2ed (patch)
tree998b0948c6d5dd83dbd3672e496b68fb847093e6
downloadaur-b1c81782d3e078333b39a16d1dea431fd848f2ed.tar.gz
Initial import
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD36
-rwxr-xr-xworkbench3
-rw-r--r--workbench.desktop10
-rw-r--r--workbench.install15
5 files changed, 84 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..da2e2ee7337
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+pkgbase = workbench
+ pkgdesc = Subversion client written in python.
+ pkgver = 1.6.10
+ pkgrel = 1
+ url = http://pysvn.tigris.org/
+ install = workbench.install
+ arch = i686
+ arch = x86_64
+ license = APACHE
+ depends = python2-pysvn>=1.7.10
+ depends = wxpython2.8
+ source = http://pysvn.barrys-emacs.org/source_kits/WorkBench-1.6.10.tar.gz
+ source = workbench
+ source = workbench.desktop
+ md5sums = d261dcd7ea010dfaa66860a7edcd7fe3
+ md5sums = 53bfd152b2c12ab2ead9b2d3f01c4f45
+ md5sums = 671568d7cf11a327e21f2b3f89a80495
+
+pkgname = workbench
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..67ea0a9a92d
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,36 @@
+# Contributor: shacristo <shacristo at gmail dot com>
+# Maintainer: Zeph <zeph33@gmail.com>
+
+pkgname=workbench
+_pkgname=WorkBench
+pkgver=1.6.10
+pkgrel=1
+pkgdesc="Subversion client written in python."
+arch=('i686' 'x86_64')
+url="http://pysvn.tigris.org/"
+license=('APACHE')
+install=workbench.install
+depends=('python2-pysvn>=1.7.10' 'wxpython2.8')
+source=(http://pysvn.barrys-emacs.org/source_kits/$_pkgname-$pkgver.tar.gz \
+ workbench \
+ workbench.desktop)
+md5sums=('d261dcd7ea010dfaa66860a7edcd7fe3'
+ '53bfd152b2c12ab2ead9b2d3f01c4f45'
+ '671568d7cf11a327e21f2b3f89a80495')
+
+build() {
+ cd $srcdir/$_pkgname-$pkgver/Source
+ sed -i -e "s/\['2.9'\]/\['2.8'\]/g" wb_main.py
+}
+package() {
+ _pyver=`python2 -V 2>&1|sed -e 's/.* 2\.\([0-9]\).*/\1/'`
+ cd $srcdir/$_pkgname-$pkgver
+ mkdir -p ${pkgdir}/usr/share/doc/
+ install -Dm644 Source/wb.png $pkgdir/usr/share/pixmaps/wb.png
+ install -Dm644 $srcdir/workbench.desktop $pkgdir/usr/share/applications/workbench.desktop
+ mv Docs ${pkgdir}/usr/share/doc/workbench
+ mkdir -p ${pkgdir}/usr/lib/python2.${_pyver}/site-packages
+ mv Source ${pkgdir}/usr/lib/python2.${_pyver}/site-packages/workbench
+ install -D -m755 ${srcdir}/workbench ${pkgdir}/usr/bin/workbench
+}
+
diff --git a/workbench b/workbench
new file mode 100755
index 00000000000..5f5536bc80f
--- /dev/null
+++ b/workbench
@@ -0,0 +1,3 @@
+#!/bin/bash
+_pyver=`python2 -V 2>&1|sed -e 's/.* 2\.\([0-9]\).*/\1/'`
+python2 /usr/lib/python2.${_pyver}/site-packages/workbench/wb_main.py
diff --git a/workbench.desktop b/workbench.desktop
new file mode 100644
index 00000000000..09c1125b3df
--- /dev/null
+++ b/workbench.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Encoding=UTF-8
+Name=Work Bench
+Comment=Python Subversion Client
+Exec=workbench
+Icon=wb
+Terminal=false
+Type=Application
+Categories=GNOME;Application;Development;
+StartupNotify=false
diff --git a/workbench.install b/workbench.install
new file mode 100644
index 00000000000..47b20518d56
--- /dev/null
+++ b/workbench.install
@@ -0,0 +1,15 @@
+#!/bin/sh
+post_install() {
+ update-mime-database usr/share/mime &> /dev/null
+ xdg-icon-resource forceupdate --theme hicolor &> /dev/null
+ update-desktop-database -q
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}
+