# Depends on: lxqt-build-tools hicolor-icon-theme qtermwidget qtx11extras lxqt-build-tools

description="A lightweight Qt-based terminal emulator"
url="http://lxqt.org"
packager="tnut <tnut@nutyx.org>"
contributors="Greg"

name=qterminal
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))
}
