1 # Maintainer: RKA KriK <rka_krik@mail.ru>
7 pkgdesc="The GTK+ Toolkit (v3.1.x, unstable, with wayland support)"
9 url="http://www.gtk.org/"
11 depends=('glib2-git' 'atk' 'cairo' 'gtk-update-icon-cache' 'libcups' 'libxcursor'
12 'libxinerama' 'libxrandr' 'libxi' 'libxcomposite' 'libxdamage'
13 'shared-mime-info' 'libxkbcommon-git' 'pango-unstable')
14 makedepends=('gobject-introspection')
16 provides=("gtk3=${_realver}")
17 options=('!libtool' '!docs')
18 backup=(etc/gtk-3.0/settings.ini)
21 sha256sums=('3f2fd1ac4e0a59381e443b7c14d937b434c515e02d06c7c4b3999fb24406b784')
23 _gitroot="git://git.gnome.org/gtk+"
27 msg "Connecting to gnome.org GIT server...."
29 if [ -d ${srcdir}/${_gitname} ] ; then
30 cd ${_gitname} && git pull origin
31 msg "The local files are updated."
36 msg "GIT checkout done or server timeout"
37 msg "Creating build directory"
38 if [ -d ${srcdir}/${_gitname}-build ]; then rm -rf ${srcdir}/${_gitname}-build; fi
39 cp -R ${srcdir}/${_gitname} ${srcdir}/${_gitname}-build
41 msg "Starting make..."
43 cd ${srcdir}/${_gitname}-build
44 CXX=/bin/false ./autogen.sh --prefix=/usr --sysconfdir=/etc \
45 --localstatedir=/var --enable-gtk2-dependency \
46 --enable-x11-backend --enable-wayland-backend \
47 --disable-schemas-compile #--disable-glibtest
49 #https://bugzilla.gnome.org/show_bug.cgi?id=655517
50 #sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
55 cd ${srcdir}/${_gitname}-build
56 make DESTDIR="${pkgdir}" install
58 install -Dm644 "${srcdir}/settings.ini" "${pkgdir}/etc/gtk-3.0/settings.ini"