# Maintainer: Joey Dalton # This file is based on the gtk3-classic PKGBUILD: # https://aur.archlinux.org/packages/gtk3-classic # and uses xfce patches from: # https://github.com/simplejack-src/gtk3-classic-xfce (repository no longer available) __arch_pkg_commit="e6dc1b0abce1d021ea3cec2f8c0d3fdf93cd0b87" _gtkver=3.24.42 _gtk3_classic_url=https://github.com/lah7/gtk3-classic _gtk3_classic_commit="83313fe74b0611d59099871941441ff7d8b74bb6" _gtk3_classic=gtk3-classic pkgbase=gtk3-classic-xfce pkgname=($pkgbase) pkgver=${_gtkver} pkgrel=1 pkgdesc="Patched GTK+3 that provides a more classic experience, with patches for xfce" url="https://github.com/lah7/gtk3-classic" conflicts=(gtk3 gtk3-typeahead gtk3-print-backends gtk3-nocsd gtk3-nocsd-git gtk3-nocsd-legacy-git gtk3-classic) provides=(gtk3-classic=$_gtkver gtk3=$_gtkver gtk3-typeahead=$_gtkver gtk3-mushrooms=$_gtkver gtk3-print-backends libgtk-3.so libgdk-3.so libgailutil-3.so) arch=(x86_64) license=(LGPL-2.1-or-later) depends=( atk cairo desktop-file-utils fribidi gdk-pixbuf2 gtk-update-icon-cache libepoxy librsvg libxcomposite libxcursor libxdamage libxi libxinerama libxkbcommon libxrandr pango shared-mime-info wayland ) optdepends=( 'adwaita-icon-theme: default icon theme' 'cantarell-fonts: default font' 'colord: color management support' 'dconf: default GSettings backend' 'libcups: printer support in print dialog' ) makedepends=( at-spi2-core atk cairo cantarell-fonts desktop-file-utils fribidi gdk-pixbuf2 git gobject-introspection gtk-update-icon-cache hicolor-icon-theme libcups libegl libepoxy libgl librsvg libxcomposite libxcursor libxdamage libxi libxinerama libxkbcommon libxrandr meson pango python-packaging quilt sassc shared-mime-info wayland wayland-protocols ) install=gtk3.install source=(git+$_gtk3_classic_url.git#commit=$_gtk3_classic_commit "https://download.gnome.org/sources/gtk+/${pkgver%.*}/gtk+-$_gtkver.tar.xz" "gtk-query-immodules-3.0.hook::https://gitlab.archlinux.org/archlinux/packaging/packages/gtk3/-/raw/$__arch_pkg_commit/gtk-query-immodules-3.0.hook" settings.ini appearance__file-chooser-xfce.patch ) sha256sums=('738383c7dccc345c71c8018ff64651dcf410be9c554918e7c27fd5a8cd3107d9' '50f89f615092d4dd01bbd759719f8bd380e5f149f6fd78a94725e2de112377e2' 'a0319b6795410f06d38de1e8695a9bf9636ff2169f40701671580e60a108e229' '01fc1d81dc82c4a052ac6e25bf9a04e7647267cc3017bc91f9ce3e63e5eb9202' 'c443bfa1f70ac5ce2102c83b38b193e78f614b606cb0dae807ecd25d591f1e99') prepare() { cd gtk+-$_gtkver cp ../"appearance__file-chooser-xfce.patch" ../"$_gtk3_classic" echo "appearance__file-chooser-xfce.patch" >> ../"$_gtk3_classic"/series QUILT_PATCHES=../"$_gtk3_classic" quilt push -av rm -f "$srcdir"/gtk+-"$_gtkver"/gtk/theme/Adwaita/gtk-contained{,-dark}.css cat "$srcdir/$_gtk3_classic/smaller-adwaita.css" | tee -a "$srcdir"/gtk+-"$_gtkver"/gtk/theme/Adwaita/gtk-contained{,-dark}.css > /dev/null } build() { CFLAGS+=" -DG_DISABLE_CAST_CHECKS" # 64-bit arch-meson gtk+-$_gtkver build \ -D broadway_backend=true \ -D colord=auto \ -D demos=false \ -D examples=false \ -D introspection=true \ -D tests=false \ -D installed_tests=false ninja -C build } package_gtk3-classic-xfce() { DESTDIR="$pkgdir" meson install -C build install -Dt "$pkgdir/usr/share/gtk-3.0" -m644 settings.ini install -Dt "$pkgdir/usr/share/libalpm/hooks" -m644 gtk-query-immodules-3.0.hook rm "$pkgdir/usr/bin/gtk-update-icon-cache" }