summaryrefslogtreecommitdiffstats
path: root/audio/clementine/clementine.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'audio/clementine/clementine.SlackBuild')
-rw-r--r--audio/clementine/clementine.SlackBuild22
1 files changed, 11 insertions, 11 deletions
diff --git a/audio/clementine/clementine.SlackBuild b/audio/clementine/clementine.SlackBuild
index 197f803561..986e5091e0 100644
--- a/audio/clementine/clementine.SlackBuild
+++ b/audio/clementine/clementine.SlackBuild
@@ -3,6 +3,7 @@
# Slackware build script for clementine
# Copyright 2010 David Woodfall <dave@slackbuilds.org>
+# Copyright 2023 Jeremy Hansen <jebrhansen+SBo@gmail.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -27,9 +28,9 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=clementine
-VERSION=${VERSION:-1.4.0rc1_420_g596cd9b0a}
-SRCVER=$(echo $VERSION | tr _ - )
-BUILD=${BUILD:-1}
+SRCNAM=Clementine
+VERSION=${VERSION:-1.4.0rc2}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -41,9 +42,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
@@ -72,9 +70,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$SRCVER
-tar xvf $CWD/$PRGNAM-$SRCVER.tar.xz
-cd $PRGNAM-$SRCVER
+rm -rf $SRCNAM-$VERSION
+tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
+cd $SRCNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -82,19 +80,21 @@ 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 {} \;
+export LDFLAGS="-Wl,--copy-dt-needed-entries"
mkdir build
cd build
cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_CXX_STANDARD=17 \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
..
- make all CFLAGS="-fPIC" PMFLAGS="-DNEWBUFFER"
+ make
make install DESTDIR=$PKG
cd ..
-for i in 16 32 64 128; do
+for i in 16 32; do
install -m 0644 -D dist/${PRGNAM}_${i}.png \
$PKG/usr/share/icons/hicolor/${i}x${i}/apps/application-x-clementine.png
done