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

description="LXQt themes, graphics and icons."
url="http://lxqt.org"
packager="greg<greg@nutyx.org>"
contributors=""

run=()



name=lxqt-themes
version=0.12.0
release=1

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

prepare() {
echo "Fonction prepare sans objet"
}

build() {
mkdir -p build
cd build
cmake $SRC/$name-$version \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib
make
}

package() {
cd build
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))
}


