### this file is sourced not run
PKGVER=3.22.30
PKGBUILD=1
PKGARCH=x86_64

# source: pre BLFS 8.3 2018-08-26
TARBALL=gtk+-$PKGVER.tar.xz
MD5SUM=61e60dc073e0a6893c72043d20579dc0
SRC_URL=http://ftp.gnome.org/pub/gnome/sources/gtk+/3.22/$TARBALL
BUNDLE=

SLACKREQ='at-spi2-atk gdk-pixbuf libepoxy pango cups libxkbcommon libjson-glib librest'
SLACKDESC="gtk3: gtk3 $PKGVER (GTK GUI Toolkit)
gtk3:  
gtk3: The GTK+ 3 package contains libraries used for creating graphical user 
gtk3: interfaces for applications. 
gtk3: 
gtk3: This is version 3 of the library. It is not compatible with GTK2, but
gtk3: it can be installed side-by-side with it.
gtk3: 
gtk3: 
gtk3: 
gtk3:
"
SLACKINSTALL='glib-compile-schemas ./usr/share/glib-2.0/schemas'
SLACKUNINSTALL='glib-compile-schemas ./usr/share/glib-2.0/schemas'

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	export CFLAGS="$CFLAGS -DG_DISABLE_ASSERT -DG_DISABLE_CAST_CHECKS"
	CONFFLAGS="$CONFFLAGS \
		--enable-broadway-backend --enable-x11-backend \
		--disable-wayland-backend \
		--enable-introspection \
		--disable-schemas-compile \
		--with-x"
	pkg_build_autoconf && pkg_build_slackdesc &&
	
	# gtk2 compat
	mv /usr/bin/gtk{,3}-update-icon-cache &&
	mv /usr/share/man/man1/gtk{,3}-update-icon-cache.1 &&
	
	# multilib
	mv -v /usr/bin/gtk-query-immodules-3.0{,-64} &&
	ln -sfv multiarch_wrapper /usr/bin/gtk-query-immodules-3.0 &&
	mv -v /usr/share/gir-1.0/* /usr/share/gir-1.0-64 &&
	rm -r /usr/share/gir-1.0/
	
<< "INFO-ONLY"

Configuration Information

GTK+ 3 themes change the way a GTK+ 3 application looks. 
An icon theme can be used to change the icons that appear on the application's toolbar. 
If you have installed a GTK+ 3 theme (eg gnome-themes-standard-3.18.0), 
an icon theme (such as oxygen-icons-15.04.3) and/or a font 
(such as DejaVu fonts), you can set your prefences in ~/.config/gtk-3.0/settings.ini 
or the default system wide configuration file (as the root user), in /etc/gtk-3.0/settings.ini

mkdir -p /etc/gtk-3.0
> /etc/gtk-3.0/settings.ini cat << "EOF"
[Settings]
gtk-theme-name = Adwaita
gtk-icon-theme-name = oxygen
gtk-font-name = DejaVu Sans 12
gtk-cursor-theme-size = 18
gtk-toolbar-style = GTK_TOOLBAR_BOTH_HORIZ
gtk-xft-antialias = 1
gtk-xft-hinting = 1
gtk-xft-hintstyle = hintslight
gtk-xft-rgba = rgb
gtk-cursor-theme-name = Adwaita
EOF

There are many settings keys, some with default values. 
You can find them at Settings: GTK+ 3 Reference Manual. 
There are many more themes available at http://gnome-look.org/ and other places.
INFO-ONLY
}

