description="The GTK+ update icon cache tool"
url="http://www.gtk.org/"

packager="spiky <spiky@nutyx.org>"
contributors="Pierre,Tnut"

makedepends=(glib gdk-pixbuf pango xorg-libxi egl-wayland)

name=gtk-update-icon-cache
version=3.24.34
release=2

PKGMK_DEPENDS=(libepoxy mesa xorg-libxdamage xorg-libdrm \
	       at-spi2-core dbus xorg-libxtst)

source=(https://download.gnome.org/sources/gtk+/${version%.*}/gtk+-$version.tar.xz)

build() {
cd gtk+-$version
sed -i 's#.*@man_#man_#' docs/reference/gtk/Makefile.in
./configure
cd gtk
make gtk-update-icon-cache
mkdir -p $PKG/usr/{bin,share/man/man1}
install -c gtk-update-icon-cache $PKG/usr/bin/gtk-update-icon-cache
install -c -m644 ../docs/reference/gtk/gtk-update-icon-cache.1 \
$PKG/usr/share/man/man1

}
uptodate(){
local lastversion
lastversion="`lynx -read_timeout=20 -dump -listonly -nonumbers \
https://download.gnome.org/sources/gtk+/${version:0:4}/?C=N\;O=D|grep LATEST|grep [0-9]$|cut -d "-" -f3`"
echo "$lastversion"
}
