Package Details: gtk2-ng-git r22068.0675b80da-4

Git Clone URL: https://aur.archlinux.org/gtk2-ng-git.git (read-only, click to copy)
Package Base: gtk2-ng-git
Description: GObject-based multi-platform GUI toolkit (community-maintained fork)
Upstream URL: https://www.gtk.org/
Licenses: LGPL-2.1-or-later
Conflicts: gtk2
Provides: gtk2, libgailutil.so, libgdk-x11-2.0.so, libgtk-x11-2.0.so
Replaces: gtk2
Submitter: andreas_baumann
Maintainer: andreas_baumann
Last Packager: andreas_baumann
Votes: 4
Popularity: 3.15
First Submitted: 2026-04-30 12:13 (UTC)
Last Updated: 2026-05-22 20:01 (UTC)

Latest Comments

Samueru commented on 2026-05-22 17:02 (UTC)

Hi, can you add aarch64 support to the PKGBUILD? this builds fine on aarch64 all that is needed is adding it to the arch array.

drankinatty commented on 2026-05-14 23:52 (UTC)

Thank you for creating the AUR package. I just read about gtk2-ng on The Register a few days ago. I've still got the normal gtk2 building but will try with this package. Gtk+2 is far to integral to many packages to not have a continuation of the toolkit.

andreas_baumann commented on 2026-05-13 14:38 (UTC)

@fiftydinar: thanks for spotting that. :-)

fiftydinar commented on 2026-05-12 19:59 (UTC)

@andreas_baumann I see why it happens.

It's because the 2nd defined provides()

provides=(
    libgailutil.so
    libgdk-x11-2.0.so
    libgtk-x11-2.0.so
  )

in package() overwrites the 1st one that is defined: provides=('gtk2' 'gtk2=2.24.33')

The solution is to just set:

provides+=(
    libgailutil.so
    libgdk-x11-2.0.so
    libgtk-x11-2.0.so
  )

andreas_baumann commented on 2026-05-11 13:26 (UTC) (edited on 2026-05-11 13:26 (UTC) by andreas_baumann)

I understood the issue now, but I don't know why it doesn't work when I set replaces. Maybe the dependency is transitive?

fiftydinar commented on 2026-05-11 09:00 (UTC) (edited on 2026-05-11 09:12 (UTC) by fiftydinar)

@andreas_baumann I believe that @saburouta means that currently installing any Arch package which requires gtk2 complains about gtk2 missing, so you need to manually modify PKGBUILD, where required dependency is gtk2-ng-git instead. That's what I had to do. Which is weird to me, because this has replaces=('gtk2') in your PKGBUILD, which should replace it.

andreas_baumann commented on 2026-05-03 06:56 (UTC)

So far it works as a drop in replacement for gtk2, for the software I tested so far without any issues.

I don't quite understand the "requiring gtk2" question?

saburouta commented on 2026-05-02 03:42 (UTC)

Thank you for submitting this, this is a really cool project. Did you intend for no packages to be able to use gtk2-ng-git by requiring gtk2?