summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--multimedia/shotcut/README10
-rw-r--r--multimedia/shotcut/shotcut.SlackBuild32
-rw-r--r--multimedia/shotcut/shotcut.desktop (renamed from multimedia/shotcut/Shotcut.desktop)4
-rw-r--r--multimedia/shotcut/shotcut.info16
4 files changed, 35 insertions, 27 deletions
diff --git a/multimedia/shotcut/README b/multimedia/shotcut/README
index 1d78eb20ac..7ed8f32220 100644
--- a/multimedia/shotcut/README
+++ b/multimedia/shotcut/README
@@ -1,9 +1,5 @@
-shotcut (a free, open source, cross-platform video editor).
-
Shotcut is a free, open source, cross-platform video editor.
-Optional dependency is: ladspa_sdk
-
-For build shotcut from sources these packages are required:
-
- qt5, mlt, x264, lame, frei0r, ladspa_sdk.
+Note: In order to build shotcut correctly, the dependencies
+need to be built in order that they are listed in the
+shotcut.info file.
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
diff --git a/multimedia/shotcut/Shotcut.desktop b/multimedia/shotcut/shotcut.desktop
index d6ec49d632..39b6dace83 100644
--- a/multimedia/shotcut/Shotcut.desktop
+++ b/multimedia/shotcut/shotcut.desktop
@@ -5,6 +5,6 @@ Terminal=false
Name=Shotcut
GenericName=Video Editor
Comment=Video Editor
-Exec=sh -c "/opt/Shotcut/Shotcut.app/shotcut "%F""
-Icon=applications-multimedia
+Exec=shotcut
+Icon=
Categories=Application
diff --git a/multimedia/shotcut/shotcut.info b/multimedia/shotcut/shotcut.info
index 8651e86070..4fb821d1f1 100644
--- a/multimedia/shotcut/shotcut.info
+++ b/multimedia/shotcut/shotcut.info
@@ -1,10 +1,10 @@
PRGNAM="shotcut"
-VERSION="15.08"
+VERSION="16.11"
HOMEPAGE="http://www.shotcut.org/"
-DOWNLOAD="https://github.com/mltframework/shotcut/releases/download/v15.08/shotcut-debian7-x86-150810.tar.bz2"
-MD5SUM="cfb589fbcbaed452b15cba659465c147"
-DOWNLOAD_x86_64="https://github.com/mltframework/shotcut/releases/download/v15.08/shotcut-debian7-x86_64-150810.tar.bz2"
-MD5SUM_x86_64="d0a8dcbaedca699c0a4c419527a9ff4a"
-REQUIRES="jack-audio-connection-kit"
-MAINTAINER="Edinaldo P. Silva"
-EMAIL="edps.mundognu@gmail.com"
+DOWNLOAD="https://github.com/mltframework/shotcut/archive/v16.11/shotcut-16.11.tar.gz"
+MD5SUM="bab9dddf924b189e2aaf003541dee376"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES="qt5-webkit jack-audio-connection-kit x264 lame frei0r ladspa_sdk mlt"
+MAINTAINER="Larry Hajali"
+EMAIL="larryhaja[at]gmail[dot]com"