db-move: moved gnome-weather from [staging] to [testing] (any)
[arch-packages.git] / gtk2 / trunk / PKGBUILD
blob44c11d211c2e4cbf9f451185d3038fe38f817b82
1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
2 # Maintainer: Jan de Groot <jgc@archlinux.org>
4 pkgname=gtk2
5 pkgver=2.24.33
6 pkgrel=3
7 pkgdesc="GObject-based multi-platform GUI toolkit (legacy)"
8 url="https://www.gtk.org/"
9 arch=(x86_64)
10 depends=(
11   atk
12   cairo
13   desktop-file-utils
14   gtk-update-icon-cache
15   libcups
16   librsvg
17   libxcomposite
18   libxcursor
19   libxdamage
20   libxi
21   libxinerama
22   libxrandr
23   pango
24   shared-mime-info
26 makedepends=(
27   git
28   gobject-introspection
29   gtk-doc
31 optdepends=(
32   'adwaita-icon-theme: Default icon theme'
33   'gnome-themes-standard: Default widget theme'
34   'python: gtk-builder-convert'
36 provides=(
37   libgailutil.so
38   libg{d,t}k-x11-2.0.so
40 license=(LGPL)
41 install=gtk2.install
42 _commit=68631945733158f164427db84f01301d7e875763  # tags/2.24.33^0
43 source=(
44   "git+https://gitlab.gnome.org/GNOME/gtk.git#commit=$_commit"
45   gtkrc
46   gtk-query-immodules-2.0.hook
47   xid-collision-debug.patch
49 b2sums=('SKIP'
50         '0583436972edcebb09ce6c3f445f6ea4d7f92132da0ef317ee93665b646061ba261281b0186ed6655e63bbb668c58e37f6987919d4c054ccda19ca034aa718dc'
51         '9c531f9f605e1739e13c39c1cac22daddd9574f3082f18bcf0b9dfaa4c41f2485d55be03a9ed12fb4504d509f0d5ac63980a9d9349e3f80a06595c6430c78096'
52         'c35b2f16ea3402f41a7a5ac83a93b423e46f9355e11186742402887ba94fc58e9a5c1d7fc55141fab72f230a973c5ac6346090b225a5eff9e416e397bd1b1ec4')
54 pkgver() {
55   cd gtk
56   git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
59 prepare() {
60   cd gtk
61   git apply -3 ../xid-collision-debug.patch
62   NOCONFIGURE=1 ./autogen.sh
65 build() {
66   local configure_options=(
67     --prefix=/usr
68     --sysconfdir=/etc
69     --localstatedir=/var
70     --with-xinput=yes
71     --disable-gtk-doc
72   )
74   cd gtk
75   ./configure "${configure_options[@]}"
76   sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
77   make
80 package() {
81   cd gtk
82   make DESTDIR="$pkgdir" install
84   install -Dt "$pkgdir/usr/share/gtk-2.0" -m644 ../gtkrc
85   install -Dt "$pkgdir/usr/share/libalpm/hooks" -m644 ../gtk-query-immodules-2.0.hook
87   # Built by GTK 4, shared with GTK 2/3
88   rm "$pkgdir/usr/bin/gtk-update-icon-cache"
91 # vim:set sw=2 sts=-1 et: