# Depends on: gtk2

description="Cairo based GTK engine."
url="http://www.cimitan.com/murrine/"
maintainer="Danny Rawlins, monster dot romster at gmail dot com"
packager="tnut <tnut@nutyx.org>"
contributors="Tyrry"

name=murrine
version=0.98.2
release=3

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

build() {
cd murrine-$version

./configure \
--prefix=/usr \
--enable-animation \
--enable-animationrtl

make
make DESTDIR=$PKG install
# Obsolet lib
rm $PKG/usr/lib/gtk-2.0/2.10.0/engines/libmurrine.la
}
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"
}
