Date: Saturday, April 15, 2023 @ 22:35:58 Author: heftig Revision: 474078
2.24.33-3: reformat, rebuild for debug symbols Modified: gtk2/trunk/PKGBUILD ----------+ PKGBUILD | 81 +++++++++++++++++++++++++++++++++++++++---------------------- 1 file changed, 53 insertions(+), 28 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2023-04-15 22:35:45 UTC (rev 474077) +++ PKGBUILD 2023-04-15 22:35:58 UTC (rev 474078) @@ -3,32 +3,57 @@ pkgname=gtk2 pkgver=2.24.33 -pkgrel=2 +pkgrel=3 pkgdesc="GObject-based multi-platform GUI toolkit (legacy)" +url="https://www.gtk.org/" arch=(x86_64) -url="https://www.gtk.org/" -depends=(atk pango libxcursor libxinerama libxrandr libxi libxcomposite libxdamage - shared-mime-info cairo libcups gtk-update-icon-cache librsvg desktop-file-utils) -makedepends=(gobject-introspection git gtk-doc) -optdepends=('gnome-themes-standard: Default widget theme' - 'adwaita-icon-theme: Default icon theme' - 'python: gtk-builder-convert') -provides=(libgailutil.so libg{d,t}k-x11-2.0.so) +depends=( + atk + cairo + desktop-file-utils + gtk-update-icon-cache + libcups + librsvg + libxcomposite + libxcursor + libxdamage + libxi + libxinerama + libxrandr + pango + shared-mime-info +) +makedepends=( + git + gobject-introspection + gtk-doc +) +optdepends=( + 'adwaita-icon-theme: Default icon theme' + 'gnome-themes-standard: Default widget theme' + 'python: gtk-builder-convert' +) +provides=( + libgailutil.so + libg{d,t}k-x11-2.0.so +) license=(LGPL) install=gtk2.install _commit=68631945733158f164427db84f01301d7e875763 # tags/2.24.33^0 -source=("git+https://gitlab.gnome.org/GNOME/gtk.git#commit=$_commit" - gtkrc - gtk-query-immodules-2.0.hook - xid-collision-debug.patch) -sha256sums=('SKIP' - 'bc968e3e4f57e818430130338e5f85a5025e21d7e31a3293b8f5a0e58362b805' - '427e7ed2626465ea7a8986189b6c8340a0520b9f7b8e2a56cd1169d375da7425' - '7724a55c4916318ed81b22f21c37c0a66e78adce017563fed6d84d813a4b80bc') +source=( + "git+https://gitlab.gnome.org/GNOME/gtk.git#commit=$_commit" + gtkrc + gtk-query-immodules-2.0.hook + xid-collision-debug.patch +) +b2sums=('SKIP' + '0583436972edcebb09ce6c3f445f6ea4d7f92132da0ef317ee93665b646061ba261281b0186ed6655e63bbb668c58e37f6987919d4c054ccda19ca034aa718dc' + '9c531f9f605e1739e13c39c1cac22daddd9574f3082f18bcf0b9dfaa4c41f2485d55be03a9ed12fb4504d509f0d5ac63980a9d9349e3f80a06595c6430c78096' + '058c697d8874081c992be5de68c609b625ba6637f936832d61ed46ad83d41888d7ef2d7682def294776d28e37e37480eb92073b6df95e2711b258faccf48363b') pkgver() { cd gtk - git describe --tags | sed 's/-/+/g' + git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g' } prepare() { @@ -38,18 +63,17 @@ } build() { - cd gtk - - ./configure \ - --prefix=/usr \ - --sysconfdir=/etc \ - --localstatedir=/var \ - --with-xinput=yes \ + local configure_options=( + --prefix=/usr + --sysconfdir=/etc + --localstatedir=/var + --with-xinput=yes --disable-gtk-doc + ) - # https://bugzilla.gnome.org/show_bug.cgi?id=655517 + cd gtk + ./configure "${configure_options[@]}" sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool - make } @@ -60,7 +84,8 @@ install -Dt "$pkgdir/usr/share/gtk-2.0" -m644 ../gtkrc install -Dt "$pkgdir/usr/share/libalpm/hooks" -m644 ../gtk-query-immodules-2.0.hook + # Built by GTK 4, shared with GTK 2/3 rm "$pkgdir/usr/bin/gtk-update-icon-cache" } -# vim:set et sw=2: +# vim:set sw=2 sts=-1 et:
