# Depends on: hicolor-icon-theme, gtk-update-icon-cache, icon-naming-utils, intltool

description="GNOME Icons Set"
url="http://www.gnome.org/"
maintainer="git.gnome.org/brownse/gnome-icon-theme/"
packager="tnut <tnut@nutyx.org>"

run=(hicolor-icon-theme gtk-update-icon-cache icon-naming-utils)

name=gnome-icon-theme
version=3.12.0
release=1
source=(http://ftp.gnome.org/pub/gnome/sources/$name/${version%.*}/$name-$version.tar.xz)

build() {
cd $name-$version
./configure --prefix=/usr
make
make DESTDIR=$PKG install
gtk-update-icon-cache -q -t -f $PKG/usr/share/icons/gnome
}
uptodate(){
local latest lastversion url
url="http://ftp.gnome.org/pub/gnome/sources/$name"
latest="`lynx -read_timeout=20 -dump -listonly -nonumbers \
$url/?C=N\;O=D|grep [0-9]/$|head -1`"
lastversion="`lynx -read_timeout=20 -dump -listonly -nonumbers \
$latest/?C=N\;O=D|grep LATEST|grep [0-9]$|cut -d "-" -f5`"
echo "$lastversion"
}
