description="The LXQt session"
url="https://github.com/lxqt/lxqt-session"

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

makedepends=(liblxqt qtxdg-tools xdg-user-dirs lxqt-build-tools procps-ng)

run=(breeze-icons)

set=(lxqt)

name=lxqt-session
version=1.2.0

source=(consolidate-1.patch
        https://github.com/lxqt/$name/releases/download/$version/$name-$version.tar.xz)
prepare() {
cd $name-$version
patch -Np1 -i ../consolidate-1.patch
}

build=kde5

uptodate() {
feed=https://github.com/lxde/$name/releases.atom 
exec="lynx -read_timeout=20 -dump -listonly -nonumbers $feed"
ligne=1 # nombre de notification ? afficher
$exec $feed | grep title | \
sed "s@<title>@@" | \
sed "s@</title>@@" | \
head -n $(($ligne+1 )) | \
tail -n $(($ligne))
}
