description="Shared GSettings schemas for the desktop" url="http://www.gnome.org/" packager="spiky " contributors="Pierre B, Fanch, tnut" makedepends=(meson ninja intltool glib gobject-introspection perl-xml-parser) name=gsettings-desktop-schemas version=41.0 source=(https://download.gnome.org/sources/$name/41/$name-$version.tar.xz) prepare() { cd $name-$version # NuTyX Background sed -i "s@gnome/adwaita-timed.xml@nutyx/nutyx.jpg@" \ schemas/org.gnome.desktop.background.gschema.xml.in sed -i -r 's:"(/system):"/org/gnome\1:g' schemas/*.in } build=meson 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 "-" -f5`" echo "$lastversion" }