summaryrefslogtreecommitdiff
path: root/multimedia/shotcut/shotcut.SlackBuild
diff options
context:
space:
mode:
authorLarry Hajali <larryhaja[at]gmail[dot]com>2016-11-20 20:29:04 +0000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-11-26 11:47:24 +0700
commit379e0016752c6a561ac6625e387265e3afb20189 (patch)
tree1bcda61eae7c80f2d874780cce44f116313ab7a7 /multimedia/shotcut/shotcut.SlackBuild
parentfd03de0940afe08ba4b57f5e44b2c7f47f7442ed (diff)
downloadslackbuilds-379e0016752c6a561ac6625e387265e3afb20189.tar.gz
multimedia/shotcut: Updated for version 16.11 + new maint.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'multimedia/shotcut/shotcut.SlackBuild')
-rw-r--r--multimedia/shotcut/shotcut.SlackBuild32
1 files changed, 22 insertions, 10 deletions
diff --git a/multimedia/shotcut/shotcut.SlackBuild b/multimedia/shotcut/shotcut.SlackBuild
index 7b28c1e9c6..e6b950ff9c 100644
--- a/multimedia/shotcut/shotcut.SlackBuild
+++ b/multimedia/shotcut/shotcut.SlackBuild
@@ -3,6 +3,7 @@
# Slackware build script for shotcut.
#
# Copyright 2015 Edinaldo P. Silva, Rio de Janeiro, Brazil.
+# Copyright 2016 Larry Hajali <larryhaja[at]gmail[dot]com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +24,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=shotcut
-VERSION=${VERSION:-15.08}
+VERSION=${VERSION:-16.11}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -59,15 +60,11 @@ fi
set -e
-RELVER=${RELVER:-debian7}
-REVNO=${REVNO:-150810}
-
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-mkdir $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$RELVER-$BITS-$REVNO.tar.bz2 -C $PRGNAM-$VERSION/
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
@@ -76,16 +73,31 @@ 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 {} \;
+# Fix libpng warning.
+# [Warning] <> libpng warning: iCCP: profile 'icc': 'RGB ': RGB color space not permitted on grayscale PNG
+for i in $(find . -name "*\.png"); do
+ mv $i ${i}.old.png
+ convert $i.old.png $i
+ touch -r ${i}.old.png $i
+ rm $i.old.png
+done
+
+qmake-qt5 PREFIX="/usr" QMAKE_CFLAGS+="$SLKCFLAGS" QMAKE_CXXFLAGS+="$SLKCFLAGS" \
+ CONFIG+=release SHOTCUT_VERSION="$VERSION" $PRGNAM.pro
+
+make
+make install INSTALL_ROOT=$PKG
+
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 $PKG/opt
-mv Shotcut $PKG/opt
+find $PKG/usr/share/$PRGNAM -type f -exec chmod 0644 '{}' \;
-install -D -m644 $CWD/Shotcut.desktop $PKG/usr/share/applications/Shotcut.desktop
+mkdir -p $PKG/usr/share/applications
+install -m 0644 $CWD/$PRGNAM.desktop $PKG/usr/share/applications
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-mv $PKG/opt/Shotcut/Shotcut.app/COPYING $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a COPYING README.md CuteLogger/LICENSE.LGPL $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install