# Depends on: cmake qtbase lxqt-build-tools

description="Is a terminal widget for Qt"
url="https://github.com/qterminal/"
packager="tnut<tnut@nutyx.org>"
contributors="Greg"

name=qtermwidget
version=0.9.0

source=(https://github.com/lxqt/$name/releases/download/$version/$name-$version.tar.xz
)

build() {
cd $name-$version

mkdir build
cd    build
cmake .. \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib
make
make DESTDIR=$PKG install
}

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))
}
