@creyon, thanks for maintaining this. Here's the proper way to define the optional dependencies:
diff --git i/PKGBUILD w/PKGBUILD
index 418036b..10772d7 100644
--- i/PKGBUILD
+++ w/PKGBUILD
@@ -9,7 +9,14 @@ pkgdesc="Python bindings for the GTK widget set"
url='https://wiki.gnome.org/Projects/PyGTK'
arch=('x86_64' 'aarch64')
license=('LGPL-2.1-or-later')
-depends=('python2-cairo' 'python2-gobject2' 'gtk2' 'python2-numpy' 'libglade')
+depends=('python2-gobject2'
+ 'gtk2')
+makedepends=('libglade'
+ 'python2-cairo'
+ 'python2-numpy')
+optdepends=('libglade: glade interface bindings'
+ 'python2-cairo: cairo grahics bindings'
+ 'python2-numpy: support for numeric Python features')
source=("${pkgname}-${pkgver}.tar.bz2::https://download.gnome.org/sources/${pkgname}/${pkgver%.*}/${pkgname}-${pkgver}.tar.bz2"
'drop-pangofont.patch'
'python27.patch'
Pinned Comments
ragouel commented on 2022-06-11 23:26 (UTC) (edited on 2022-06-12 19:54 (UTC) by ragouel)
From official GNOME docs:
"Attention: PyGTK 2.24 will be the last release in the PyGTK series and will support the full GTK-2-24 API. PyGTK should not be used for new projects and existing PyGTK applications are recommended to be ported to PyGObject. See here for more information."
https://wiki.gnome.org/Projects/PyGTK/WhatsNew224
Please stop asking me to update this package. I only "keep" it, so that it is not messed with by others, as some older applications still rely on it to function.
Thank you.