diff --git a/system/qps/doinst.sh b/system/qps/doinst.sh index 5fb28930db..65c7e2eeb9 100644 --- a/system/qps/doinst.sh +++ b/system/qps/doinst.sh @@ -1,3 +1,9 @@ if [ -x /usr/bin/update-desktop-database ]; then /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 fi + +if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then + if [ -x /usr/bin/gtk-update-icon-cache ]; then + /usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1 + fi +fi diff --git a/system/qps/qps.SlackBuild b/system/qps/qps.SlackBuild index a553654785..3e2a11bf76 100644 --- a/system/qps/qps.SlackBuild +++ b/system/qps/qps.SlackBuild @@ -3,6 +3,7 @@ # Slackware build script for qps # Copyright 2011-2017 Matteo Bernardini , Pisa, Italy +# Copyright 2022 Isaac Yu # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -25,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=qps -VERSION=${VERSION:-20160713_7e679db} +VERSION=${VERSION:-2.6.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -64,13 +65,13 @@ else LIBDIRSUFFIX="" fi -set -e +set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.?z* +tar xvf $CWD/$PRGNAM-$VERSION.tar.xz cd $PRGNAM-$VERSION chown -R root:root . find -L . \ @@ -79,26 +80,27 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -mkdir -p build +mkdir build cd build cmake \ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=Release .. make - install -D -m 0755 src/$PRGNAM $PKG/usr/bin/$PRGNAM - install -D -m 0644 src/$PRGNAM.desktop $PKG/usr/share/applications/$PRGNAM.desktop - install -D -m 0644 ../icon/icon.xpm $PKG/usr/share/pixmaps/$PRGNAM.xpm + make install DESTDIR=$PKG cd .. find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true -mkdir -p $PKG/usr/man/man1 -gzip -9c qps.1 > $PKG/usr/man/man1/$PRGNAM.1.gz +mv $PKG/usr/share/man $PKG/usr + +find $PKG/usr/man -type f -exec gzip -9 {} \; +for i in $( find $PKG/usr/share/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a COPYING README.md $PKG/usr/doc/$PRGNAM-$VERSION +cp -a CHANGELOG COPYING LICENSE.QPL README.md $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install diff --git a/system/qps/qps.info b/system/qps/qps.info index 8d5e582e64..968c0de3a5 100644 --- a/system/qps/qps.info +++ b/system/qps/qps.info @@ -1,10 +1,10 @@ PRGNAM="qps" -VERSION="20160713_7e679db" -HOMEPAGE="https://github.com/QtDesktop/qps" -DOWNLOAD="http://ponce.cc/slackware/sources/repo/qps-20160713_7e679db.tar.xz" -MD5SUM="d85ea5af2c57c28f93e9b22d8228e506" +VERSION="2.6.0" +HOMEPAGE="https://github.com/lxqt/qps" +DOWNLOAD="https://github.com/lxqt/qps/releases/download/2.6.0/qps-2.6.0.tar.xz" +MD5SUM="c6a23bbdf02b4b2cb02cefad6b91e231" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="" -MAINTAINER="Matteo Bernardini" -EMAIL="ponce@slackbuilds.org" +REQUIRES="liblxqt" +MAINTAINER="Isaac Yu" +EMAIL="isaacyu1@isaacyu1.com"