# Contributor: Rasmus Thomsen # Contributor: Natanael Copa # Maintainer: Rasmus Thomsen pkgname=gtk+3.0 pkgver=3.24.12 pkgrel=0 pkgdesc="The GTK+ Toolkit (v3)" url="https://www.gtk.org/" install="$pkgname.post-install $pkgname.post-upgrade $pkgname.post-deinstall" arch="all" options="!check" # Test suite is known to fail upstream license="LGPL-2.1-or-later" subpackages="$pkgname-demo $pkgname-dev $pkgname-doc $pkgname-lang $pkgname-dbg" depends="shared-mime-info gtk-update-icon-cache" replaces="gtk+" replaces_dev="gtk+-dev" replaces_doc="gtk+-doc" depends_dev=" atk-dev gdk-pixbuf-dev glib-dev libepoxy-dev libxext-dev libxi-dev libxinerama-dev wayland-protocols wayland-libs-client wayland-libs-cursor libxkbcommon-dev " makedepends=" $depends_dev perl cups-dev expat-dev gettext-dev gnutls-dev gobject-introspection-dev libice-dev tiff-dev zlib-dev at-spi2-atk-dev cairo-dev fontconfig-dev pango-dev wayland-dev libx11-dev libxcomposite-dev libxcursor-dev libxdamage-dev libxfixes-dev libxrandr-dev" source="https://download.gnome.org/sources/gtk+/${pkgver%.*}/gtk+-$pkgver.tar.xz 10-Revert-gdkseatdefault-Grab-touch-events-where-applic.patch" builddir="$srcdir/gtk+-$pkgver" prepare() { default_prepare sed 's|/usr/bin/sh|/bin/sh|' \ -i build-aux/compile \ -i build-aux/missing \ -i build-aux/install-sh \ -i build-aux/depcomp \ -i build-aux/config.sub \ -i build-aux/config.guess } build() { cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --enable-xkb \ --enable-xinerama \ --enable-xrandr \ --enable-xfixes \ --enable-xcomposite \ --enable-xdamage \ --enable-x11-backend \ --enable-wayland-backend \ --enable-broadway-backend # https://bugzilla.gnome.org/show_bug.cgi?id=655517 sed -i 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool make } package() { cd "$builddir" make DESTDIR="$pkgdir" install # use gtk-update-icon-cache from gtk+2.0 for now rm -f "$pkgdir"/usr/bin/gtk-update-icon-cache rm -f "$pkgdir"/usr/share/man/man1/gtk-update-icon-cache.1 } demo() { pkgdesc="$pkgdesc (demonstration application)" install -Dm755 "$pkgdir"/usr/bin/gtk3-demo \ "$pkgdir"/usr/bin/gtk3-widget-factory \ "$pkgdir"/usr/bin/gtk3-demo-application \ -t "$subpkgdir"/usr/bin install -Dm644 "$pkgdir"/usr/share/gtk-3.0/gtkbuilder.rng \ -t "$subpkgdir"/usr/share/gtk-3.0 install -Dm644 "$pkgdir"/usr/share/glib-2.0/schemas/org.gtk.Demo.gschema.xml \ "$pkgdir"/usr/share/glib-2.0/schemas/org.gtk.exampleapp.gschema.xml \ -t "$subpkgdir"/usr/share/glib-2.0/schemas install -Dm644 "$pkgdir"/usr/share/applications/gtk3-widget-factory.desktop \ "$pkgdir"/usr/share/applications/gtk3-demo.desktop \ -t "$subpkgdir"/usr/share/applications mkdir -p "$subpkgdir"/usr/share mv "$pkgdir"/usr/share/icons "$subpkgdir"/usr/share } sha512sums="97554657d83db71ff8b3ea5f650ad38b1ffcc3e8d620be876b5ca435f693e229dffc7341a84bde71bdae13293f2c1d3b2ab1b80a02791132c8a7693cdc21f612 gtk+-3.24.12.tar.xz e4ea76484b70bd9beb65b2964bbcff3b3f78f5f6fe70b12309a7721ca134e3735e8aaac09803f93b393a6130a703f8f346c0df89ad45d18c580dac1e0e922276 10-Revert-gdkseatdefault-Grab-touch-events-where-applic.patch"