# Depends on: ninja meson glib pcre gobject-introspection

description="A library providing a set of interfaces for accessibility"
url="http://www.gtk.org/"
contributors="Pierre B"
packager="tnut <tnut@nutyx.org>"

name=atk
version=2.30.0

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

build() {
cd $name-$version

mkdir build
cd    build

meson --prefix=/usr

ninja

DESTDIR=$PKG ninja install
}

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 "-" -f3`"
echo "$lastversion"
}
