description="Notification daemon for the desktop notifications framework"
url="http://www.gnome.org/"

packager="Tnut <tnut@nutyx.org>"
contributors="Pierre B"

makedepends=(intltool gtk3 libcanberra)

name=notification-daemon
version=3.20.0
release=4

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

build() {
cd $name-$version
./configure --prefix=/usr     \
            --sysconfdir=/etc \
            --disable-static 

make
make DESTDIR=$PKG install
}
uptodate(){
local latest lastversion url
url="https://download.gnome.org/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 "-" -f4`"
echo "$lastversion"
}
