system/qps: Update for 2.6.0 (+new maintainer)

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Isaac Yu 2022-12-16 22:07:06 -08:00 committed by Willy Sudiarto Raharjo
parent 58e7995222
commit b11553223c
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
3 changed files with 25 additions and 17 deletions

View File

@ -1,3 +1,9 @@
if [ -x /usr/bin/update-desktop-database ]; then if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi 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

View File

@ -3,6 +3,7 @@
# Slackware build script for qps # Slackware build script for qps
# Copyright 2011-2017 Matteo Bernardini <ponce@slackbuilds.org>, Pisa, Italy # Copyright 2011-2017 Matteo Bernardini <ponce@slackbuilds.org>, Pisa, Italy
# Copyright 2022 Isaac Yu <isaacyu1@isaacyu1.com>
# All rights reserved. # All rights reserved.
# #
# Redistribution and use of this script, with or without modification, is # Redistribution and use of this script, with or without modification, is
@ -25,7 +26,7 @@
cd $(dirname $0) ; CWD=$(pwd) cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=qps PRGNAM=qps
VERSION=${VERSION:-20160713_7e679db} VERSION=${VERSION:-2.6.0}
BUILD=${BUILD:-1} BUILD=${BUILD:-1}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz} PKGTYPE=${PKGTYPE:-tgz}
@ -64,13 +65,13 @@ else
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
fi fi
set -e set -e
rm -rf $PKG rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT mkdir -p $TMP $PKG $OUTPUT
cd $TMP cd $TMP
rm -rf $PRGNAM-$VERSION rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.?z* tar xvf $CWD/$PRGNAM-$VERSION.tar.xz
cd $PRGNAM-$VERSION cd $PRGNAM-$VERSION
chown -R root:root . chown -R root:root .
find -L . \ find -L . \
@ -79,26 +80,27 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
mkdir -p build mkdir build
cd build cd build
cmake \ cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release .. -DCMAKE_BUILD_TYPE=Release ..
make make
install -D -m 0755 src/$PRGNAM $PKG/usr/bin/$PRGNAM make install DESTDIR=$PKG
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
cd .. cd ..
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ 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 | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/man/man1 mv $PKG/usr/share/man $PKG/usr
gzip -9c qps.1 > $PKG/usr/man/man1/$PRGNAM.1.gz
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 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 cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install mkdir -p $PKG/install

View File

@ -1,10 +1,10 @@
PRGNAM="qps" PRGNAM="qps"
VERSION="20160713_7e679db" VERSION="2.6.0"
HOMEPAGE="https://github.com/QtDesktop/qps" HOMEPAGE="https://github.com/lxqt/qps"
DOWNLOAD="http://ponce.cc/slackware/sources/repo/qps-20160713_7e679db.tar.xz" DOWNLOAD="https://github.com/lxqt/qps/releases/download/2.6.0/qps-2.6.0.tar.xz"
MD5SUM="d85ea5af2c57c28f93e9b22d8228e506" MD5SUM="c6a23bbdf02b4b2cb02cefad6b91e231"
DOWNLOAD_x86_64="" DOWNLOAD_x86_64=""
MD5SUM_x86_64="" MD5SUM_x86_64=""
REQUIRES="" REQUIRES="liblxqt"
MAINTAINER="Matteo Bernardini" MAINTAINER="Isaac Yu"
EMAIL="ponce@slackbuilds.org" EMAIL="isaacyu1@isaacyu1.com"