description="Legacy polkit authentication agent for GNOME" url="http://hal.freedesktop.org/docs/polkit-gnome" packager="tnut " contributors="B Juglas" makedepends=(polkit gtk3) set=(gnome) name=polkit-gnome version=0.105 release=4 source=(https://download.gnome.org/sources/$name/0.105/$name-$version.tar.xz) build() { cd $name-$version ./configure --prefix=/usr \ --libexecdir=/usr/lib/polkit-gnome make make DESTDIR=$PKG install mkdir -p $PKG/etc/xdg/autostart cat > $PKG/etc/xdg/autostart/polkit-gnome-authentication-agent-1.desktop << "EOF" [Desktop Entry] Name=PolicyKit Authentication Agent Comment=PolicyKit Authentication Agent Exec=/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 Terminal=false Type=Application Categories= NoDisplay=true OnlyShowIn=GNOME;XFCE;Unity; EOF } 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" }