summaryrefslogtreecommitdiffstats
path: root/network/quassel/quassel.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/quassel/quassel.SlackBuild')
-rw-r--r--network/quassel/quassel.SlackBuild53
1 files changed, 19 insertions, 34 deletions
diff --git a/network/quassel/quassel.SlackBuild b/network/quassel/quassel.SlackBuild
index eadd88f036..86fa02e958 100644
--- a/network/quassel/quassel.SlackBuild
+++ b/network/quassel/quassel.SlackBuild
@@ -4,30 +4,20 @@
# Written by crocket (crockabiscuit@gmail.com)
# Copyright 2017-2019 Donald Cooley South Haven, IN USA
-# All rights reserved.
-#
-# Redistribution and use of this script, with or without modification, is
-# permitted provided that the following conditions are met:
-#
-# 1. Redistributions of this script must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-#
-# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
-# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
-# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
-# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
-# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
-# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# Copyright 2022 B. Watson <urchlay@slackware.uk>
+
+# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+
+# 20220425 bkw: BUILD=2
+# - take over maintenance.
+# - remove useless INSTALL from doc dir.
+# - use .tar.xz download.
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=quassel
-VERSION=${VERSION:-0.13.1}
-BUILD=${BUILD:-1}
+VERSION=${VERSION:-0.14.0}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -39,9 +29,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -71,14 +58,17 @@ 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 . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
- -o -perm 511 \) -exec chmod 755 {} \; -o \
+ -o -perm 511 \) -exec chmod 755 {} \+ -o \
\( -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 {} \+
+
+# 20220425 bkw: note to self: the -DWITH_WEBKIT=ON is for QtWebKit,
+# part of Slackware's qt5 package. It has nothing to do with webkit2gtk.
mkdir -p build
cd build
@@ -90,7 +80,7 @@ cd build
-DWANT_CORE=ON \
-DWANT_MONO=ON \
-DWANT_QTCLIENT=ON \
- -DUSE_QT4=ON \
+ -DUSE_QT4=OFF \
-DWITH_KDE=ON \
-DWITH_BUNDLED_ICONS=ON \
-DWITH_OXYGEN_ICONS=ON \
@@ -100,16 +90,11 @@ cd build
-DEMBED_DATA=OFF \
-DCMAKE_BUILD_TYPE=Release ..
make
- make install DESTDIR=$PKG
+ make install/strip 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
-
-find $PKG -name perllocal.pod -o -name ".packlist" -o -name "*.bs" | xargs rm -f || true
-
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a AUTHORS COPYING INSTALL README* ChangeLog gpl-2.0.txt gpl-3.0.txt \
+cp -a AUTHORS COPYING README* ChangeLog gpl-2.0.txt gpl-3.0.txt \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild