description="Contains the bindings Python for the components of heart GNOME Accessibility"
url="http://www.cairographics.org/"

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

makedepends=(alsa-lib expat pulseaudio at-spi2-core python-gobject)

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

build() {
cd pyatspi-$version
./configure --prefix=/usr
make
make DESTDIR=$PKG install
}
uptodate(){
local latest lastversion url
url="https://download.gnome.org/sources/pyatspi"
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"
}
