summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Alff2019-06-22 21:34:07 -0400
committerTed Alff2019-06-22 21:34:07 -0400
commit544e1c4efd128a18dbaf21ec10fc84400ef7bb5f (patch)
tree4856db529939351b07dadf2c45e8c194f2aaf654
downloadaur-544e1c4efd128a18dbaf21ec10fc84400ef7bb5f.tar.gz
Dropped from official repos; add to AUR
-rw-r--r--.SRCINFO38
-rw-r--r--01_wnck_enums.patch33
-rw-r--r--PKGBUILD55
3 files changed, 126 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..bbbe8e4df49
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,38 @@
+pkgbase = gnome-python-desktop
+ pkgver = 2.32.0
+ pkgrel = 19
+ url = https://www.gnome.org
+ arch = i686
+ arch = x86_64
+ license = GPL
+ license = LGPL
+ makedepends = intltool
+ makedepends = pkg-config
+ makedepends = gnome-python
+ makedepends = libwnck
+ makedepends = libgnome-keyring
+ source = https://download.gnome.org/sources/gnome-python-desktop/2.32/gnome-python-desktop-2.32.0.tar.bz2
+ source = 01_wnck_enums.patch
+ sha256sums = 09dbd580bf3b0ef60f91b090eafe6d08ddcc50a609e2b425a7f8eca46d4e0ee9
+ sha256sums = e21823dcc1a16174dbf9e48d99c6d3b29fded24ac65dfa55cae9981380a91759
+
+pkgname = gnome-python-desktop
+ pkgdesc = Python bindings for the GNOME desktop environment
+ depends = python2-gnomekeyring
+ depends = python2-wnck
+ depends = gnome-python
+
+pkgname = python2-gnomekeyring
+ pkgdesc = Python bindings for libgnome-keyring
+ depends = pygtk
+ depends = libgnome-keyring
+ conflicts = python-gnomekeyring<=2.32.0-10
+ replaces = python-gnomekeyring<=2.32.0-10
+
+pkgname = python2-wnck
+ pkgdesc = Python bindings for libwnck
+ depends = pygtk
+ depends = libwnck
+ conflicts = python-wnck<=2.32.0-10
+ replaces = python-wnck<=2.32.0-10
+
diff --git a/01_wnck_enums.patch b/01_wnck_enums.patch
new file mode 100644
index 00000000000..caa681c3481
--- /dev/null
+++ b/01_wnck_enums.patch
@@ -0,0 +1,33 @@
+Bug: https://bugzilla.gnome.org/show_bug.cgi?id=630063
+Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=597414
+
+--- a/wnck/wnck.defs
++++ b/wnck/wnck.defs
+@@ -100,7 +100,7 @@
+ )
+ )
+
+-(define-enum WindowState
++(define-flags WindowState
+ (in-module "Wnck")
+ (c-name "WnckWindowState")
+ (gtype-id "WNCK_TYPE_WINDOW_STATE")
+@@ -121,7 +121,7 @@
+ )
+ )
+
+-(define-enum WindowActions
++(define-flags WindowActions
+ (in-module "Wnck")
+ (c-name "WnckWindowActions")
+ (gtype-id "WNCK_TYPE_WINDOW_ACTIONS")
+@@ -184,7 +184,7 @@
+ )
+ )
+
+-(define-enum WindowMoveResizeMask
++(define-flags WindowMoveResizeMask
+ (in-module "Wnck")
+ (c-name "WnckWindowMoveResizeMask")
+ (gtype-id "WNCK_TYPE_WINDOW_MOVE_RESIZE_MASK")
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..3824ae75924
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,55 @@
+# Maintainer: twa022 <twa022 at gmail dot com>
+
+pkgbase=gnome-python-desktop
+pkgname=('gnome-python-desktop' 'python2-gnomekeyring' 'python2-wnck')
+pkgver=2.32.0
+pkgrel=19
+arch=('i686' 'x86_64')
+license=('GPL' 'LGPL')
+makedepends=('intltool' 'pkg-config' 'gnome-python' 'libwnck' 'libgnome-keyring')
+url="https://www.gnome.org"
+source=(https://download.gnome.org/sources/${pkgbase}/${pkgver%.*}/${pkgbase}-${pkgver}.tar.bz2
+ 01_wnck_enums.patch)
+sha256sums=('09dbd580bf3b0ef60f91b090eafe6d08ddcc50a609e2b425a7f8eca46d4e0ee9'
+ 'e21823dcc1a16174dbf9e48d99c6d3b29fded24ac65dfa55cae9981380a91759')
+
+prepare() {
+ cd ${pkgbase}-${pkgver}
+ patch -Np1 -i ../01_wnck_enums.patch
+}
+
+build() {
+ cd ${pkgbase}-${pkgver}
+ PYTHON=/usr/bin/python2 ./configure --prefix=/usr --disable-metacity
+ sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
+ make
+}
+
+package_gnome-python-desktop() {
+ depends=('python2-gnomekeyring' 'python2-wnck' 'gnome-python')
+ pkgdesc="Python bindings for the GNOME desktop environment"
+
+ cd ${pkgbase}-${pkgver}
+ make install-pkgconfigDATA DESTDIR="${pkgdir}"
+}
+
+package_python2-gnomekeyring() {
+ depends=('pygtk' 'libgnome-keyring')
+ pkgdesc="Python bindings for libgnome-keyring"
+ conflicts=('python-gnomekeyring<=2.32.0-10')
+ replaces=('python-gnomekeyring<=2.32.0-10')
+
+ cd ${pkgbase}-${pkgver}
+ make -C gnomekeyring install DESTDIR="${pkgdir}"
+}
+
+package_python2-wnck() {
+ depends=('pygtk' 'libwnck')
+ pkgdesc="Python bindings for libwnck"
+ conflicts=('python-wnck<=2.32.0-10')
+ replaces=('python-wnck<=2.32.0-10')
+
+ cd ${pkgbase}-${pkgver}
+ make -C wnck install DESTDIR="${pkgdir}"
+}
+