summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorkyak2015-08-11 17:47:14 +0300
committerkyak2015-08-11 17:47:14 +0300
commitf8f5561f57787fb90c52fb5ab6423ebd656b6b60 (patch)
tree48e82155fcd5358074faf4cabd3384b02fcaf1ea
downloadaur-f8f5561f57787fb90c52fb5ab6423ebd656b6b60.tar.gz
Initial import
-rw-r--r--.SRCINFO22
-rw-r--r--PKGBUILD33
-rw-r--r--xdg_basedirectory.patch57
3 files changed, 112 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..65493c9aa2e
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,22 @@
+pkgbase = gdevilspie
+ pkgdesc = pyGTK interface to devilspie
+ pkgver = 0.5
+ pkgrel = 2
+ url = http://code.google.com/p/gdevilspie
+ arch = i686
+ arch = x86_64
+ license = GPL
+ depends = pygtk
+ depends = devilspie
+ depends = python2-wnck
+ depends = python2
+ depends = python2-xdg
+ source = http://gdevilspie.googlecode.com/files/gdevilspie-0.5.tar.bz2
+ source = xdg_basedirectory.patch
+ md5sums = aab8eecb47599467c65c77d3eddb2d5c
+ md5sums = e810b4c7371874931f234d2b8836d3eb
+ sha256sums = e03ab813e56b6dc6d868db7c318d280c9864cfa6e8a4ca84a5bb5d05542f55ff
+ sha256sums = b8d287159b14a779c4fed525d010ad4a907eacd392e9409a2c199a4350342c89
+
+pkgname = gdevilspie
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..7c844c7c013
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,33 @@
+# Contributor: Colin Shea <colin@shea.at>
+# Maintainer: Colin Shea <colin@shea.at>
+
+pkgname=gdevilspie
+pkgver=0.5
+pkgrel=2
+pkgdesc="pyGTK interface to devilspie"
+arch=('i686' 'x86_64')
+url="http://code.google.com/p/gdevilspie"
+license=('GPL')
+depends=('pygtk' 'devilspie' 'python2-wnck' 'python2' 'python2-xdg')
+makedepends=()
+source=(http://gdevilspie.googlecode.com/files/$pkgname-$pkgver.tar.bz2
+ xdg_basedirectory.patch)
+
+md5sums=('aab8eecb47599467c65c77d3eddb2d5c'
+ 'e810b4c7371874931f234d2b8836d3eb')
+sha256sums=('e03ab813e56b6dc6d868db7c318d280c9864cfa6e8a4ca84a5bb5d05542f55ff'
+ 'b8d287159b14a779c4fed525d010ad4a907eacd392e9409a2c199a4350342c89')
+
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ mkdir -p $pkgdir/usr
+
+ # Fix XDG & the she-bang
+ patch -p1 -i $srcdir/xdg_basedirectory.patch
+
+ python2 setup.py install --prefix $pkgdir/usr
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/xdg_basedirectory.patch b/xdg_basedirectory.patch
new file mode 100644
index 00000000000..b1c3edfb3ca
--- /dev/null
+++ b/xdg_basedirectory.patch
@@ -0,0 +1,57 @@
+Common subdirectories: gdevilspie-0.5-orig/debian and gdevilspie-0.5/debian
+Common subdirectories: gdevilspie-0.5-orig/gDevilspie and gdevilspie-0.5/gDevilspie
+diff -iEZbwBu gdevilspie-0.5-orig/gdevilspie gdevilspie-0.5/gdevilspie
+--- gdevilspie-0.5-orig/gdevilspie 2013-02-03 13:10:57.913213102 -0700
++++ gdevilspie-0.5/gdevilspie 2013-02-03 13:11:21.336468365 -0700
+@@ -1,4 +1,4 @@
+-#!/usr/bin/python
++#!/usr/bin/python2
+ #
+ # gdevilspie.py
+ # Copyright (C) Islam Amer 2008 <iamer@open-craft.com>
+@@ -40,16 +40,17 @@
+ try:
+ import gDevilspie.filler as filler
+ except:
+- error = gtk.MessageDialog(None, 0, gtk.MESSAGE_ERROR, gtk.BUTTONS_CLOSE, "Make sure that Python-Wnck is correctly installed for 'filler' module to run properly.")
++ error = gtk.MessageDialog(None, 0, gtk.MESSAGE_ERROR, gtk.BUTTONS_CLOSE, "Make sure that python2-wnck is correctly installed for 'filler' module to run properly.")
+ response = error.run()
+ error.destroy()
+ DISABLE_FILLER="True"
+
+ DISABLE_XDG=""
+ try:
++ import xdg.BaseDirectory
+ import xdg.DesktopEntry
+ except:
+- error = gtk.MessageDialog(None, 0, gtk.MESSAGE_ERROR, gtk.BUTTONS_CLOSE, "Make sure that Python-xdg is correctly installed if you need autostart handling.")
++ error = gtk.MessageDialog(None, 0, gtk.MESSAGE_ERROR, gtk.BUTTONS_CLOSE, "Make sure that python2-xdg is correctly installed if you need autostart handling.")
+ response = error.run()
+ error.destroy()
+ DISABLE_XDG="True"
+@@ -542,12 +543,12 @@
+ if ( DISABLE_XDG == "True" ):
+ self.DaemonAutostart.set_sensitive(False)
+ else:
+- if (os.path.exists(xdg.DesktopEntry.xdg_config_home + "/autostart/devilspie.desktop")):
+- df = xdg.DesktopEntry.DesktopEntry(xdg.DesktopEntry.xdg_config_home + "/autostart/devilspie.desktop")
++ if (os.path.exists(xdg.BaseDirectory.xdg_config_home + "/autostart/devilspie.desktop")):
++ df = xdg.DesktopEntry.DesktopEntry(xdg.BaseDirectory.xdg_config_home + "/autostart/devilspie.desktop")
+ if (df.get('X-GNOME-Autostart-enabled') == 'true'):
+ self.DaemonAutostart.set_active(True)
+ else:
+- df = xdg.DesktopEntry.DesktopEntry(xdg.DesktopEntry.xdg_config_home + "/autostart/devilspie.desktop")
++ df = xdg.DesktopEntry.DesktopEntry(xdg.BaseDirectory.xdg_config_home + "/autostart/devilspie.desktop")
+ df.set('Name','Devilspie')
+ df.set('Exec','devilspie')
+ df.set('X-GNOME-Autostart-enabled','false')
+@@ -555,7 +556,7 @@
+
+
+ def on_DaemonAutostart_toggled(self,widget):
+- df = xdg.DesktopEntry.DesktopEntry(xdg.DesktopEntry.xdg_config_home + "/autostart/devilspie.desktop")
++ df = xdg.DesktopEntry.DesktopEntry(xdg.BaseDirectory.xdg_config_home + "/autostart/devilspie.desktop")
+ if (widget.get_active()):
+ df.set('X-GNOME-Autostart-enabled','true')
+ df.write()
+Common subdirectories: gdevilspie-0.5-orig/po and gdevilspie-0.5/po