summaryrefslogtreecommitdiff
path: root/audio/clementine/clementine.SlackBuild
diff options
context:
space:
mode:
authorDavid Woodfall <dave@dawoodfall.net>2018-08-08 21:39:43 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-08-11 07:23:08 +0700
commit8dd0f9750430c73c4affe28578ff1931d3c8016f (patch)
treeb89a3b1a85e5b00a26ef420f93bdc7b5f5bfca83 /audio/clementine/clementine.SlackBuild
parent5bd3a7dd6db04a964985851920590919dcdde6fb (diff)
downloadslackbuilds-8dd0f9750430c73c4affe28578ff1931d3c8016f.tar.gz
audio/clementine: Updated for version 1.3.1_c7f3ae9.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'audio/clementine/clementine.SlackBuild')
-rw-r--r--audio/clementine/clementine.SlackBuild33
1 files changed, 17 insertions, 16 deletions
diff --git a/audio/clementine/clementine.SlackBuild b/audio/clementine/clementine.SlackBuild
index d5e99369ae..8f6d7039e0 100644
--- a/audio/clementine/clementine.SlackBuild
+++ b/audio/clementine/clementine.SlackBuild
@@ -25,9 +25,10 @@
# Modified by SlackBuilds.org
PRGNAM=clementine
-DIRNAM=Clementine
-VERSION=${VERSION:-1.3.1}
-BUILD=${BUILD:-2}
+SRCNAM=${PRGNAM/c/C}
+VERSION=${VERSION:-1.3.1_c7f3ae9}
+COMMITVERSION="c7f3ae93e0dbc0d7a04e7691114d9faab0da1740"
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -62,9 +63,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $DIRNAM-$VERSION
-tar xvf $CWD/$DIRNAM-$VERSION.tar.gz || tar xvf $CWD/$VERSION.tar.gz
-cd $DIRNAM-$VERSION
+rm -rf $SRCNAM-$COMMITVERSION
+tar xvf $CWD/$SRCNAM-$COMMITVERSION.tar.gz
+cd $SRCNAM-$COMMITVERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -74,25 +75,25 @@ find -L . \
patch -p1 < $CWD/sqlite.patch
+# This is no longer needed but I'll keep it around just in case the above fails
+# for any reason.
# Add upstream patch for chromaprint 1.4 compatibility
# https://github.com/clementine-player/Clementine/commit/ded312685735fc266d4154d355286eeb86db3bcd
-patch -p1 < $CWD/chromaprint-1.4.patch
+#patch -p1 < $CWD/chromaprint-1.4.patch
mkdir build
cd build
cmake \
- -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
- -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -DLIB_SUFFIX=${LIBDIRSUFFIX} \
- -DMAN_INSTALL_DIR=/usr/man \
- -DCMAKE_BUILD_TYPE=Release \
- ..
+ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Release \
+ ..
make all CFLAGS="-fPIC" PMFLAGS="-DNEWBUFFER"
make install DESTDIR=$PKG
cd ..
-for i in 16 32 ; do
+for i in 16 32 64 128; do
install -m 0644 -D dist/${PRGNAM}_${i}.png \
$PKG/usr/share/icons/hicolor/${i}x${i}/apps/application-x-clementine.png
done
@@ -101,7 +102,7 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a COPYING Changelog $PKG/usr/doc/$PRGNAM-$VERSION/
+cp -a COPYING Changelog README.md $PKG/usr/doc/$PRGNAM-$VERSION/
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install