aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--multimedia/shotcut/README9
-rw-r--r--multimedia/shotcut/Shotcut.desktop10
-rw-r--r--multimedia/shotcut/doinst.sh9
-rw-r--r--multimedia/shotcut/shotcut.SlackBuild96
-rw-r--r--multimedia/shotcut/shotcut.info10
-rw-r--r--multimedia/shotcut/slack-desc19
6 files changed, 153 insertions, 0 deletions
diff --git a/multimedia/shotcut/README b/multimedia/shotcut/README
new file mode 100644
index 000000000000..2c161c60826b
--- /dev/null
+++ b/multimedia/shotcut/README
@@ -0,0 +1,9 @@
+shotcut (a free, open source, cross-platform video editor).
+
+Shotcut is a free, open source, cross-platform video editor.
+
+Optional dependencie is: ladspa_sdk
+
+For build shotcut from sources these packages are required:
+
+ qt5, mlt, x264, libvpx, lame, frei0r, ladspa_sdk.
diff --git a/multimedia/shotcut/Shotcut.desktop b/multimedia/shotcut/Shotcut.desktop
new file mode 100644
index 000000000000..454d2caf4d72
--- /dev/null
+++ b/multimedia/shotcut/Shotcut.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Version=1.0
+Type=Application
+Terminal=false
+Name=Shotcut
+GenericName=Video Editor
+Comment=Video Editor
+Exec=sh -c "/opt/Shotcut/Shotcut.app/shotcut "%F""
+Icon=applications-multimedia
+Categories=Application \ No newline at end of file
diff --git a/multimedia/shotcut/doinst.sh b/multimedia/shotcut/doinst.sh
new file mode 100644
index 000000000000..3e5691a052b5
--- /dev/null
+++ b/multimedia/shotcut/doinst.sh
@@ -0,0 +1,9 @@
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
+fi
+
+if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
+ if [ -x /usr/bin/gtk-update-icon-cache ]; then
+ /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1
+ fi
+fi
diff --git a/multimedia/shotcut/shotcut.SlackBuild b/multimedia/shotcut/shotcut.SlackBuild
new file mode 100644
index 000000000000..6e7b7cfbda31
--- /dev/null
+++ b/multimedia/shotcut/shotcut.SlackBuild
@@ -0,0 +1,96 @@
+#!/bin/sh
+#
+# Slackware build script for shotcut.
+#
+# Copyright 2015 Edinaldo P. Silva, Rio de Janeiro, Brazil.
+# 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.
+
+PRGNAM=shotcut
+VERSION=${VERSION:-15.08}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i486 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
+ BITS="x86"
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+ BITS="x86"
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+ BITS="x86_64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+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/
+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 \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+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
+
+install -D -m644 $CWD/Shotcut.desktop $PKG/usr/share/applications/Shotcut.desktop
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+mv $PKG/opt/Shotcut/Shotcut.app/COPYING $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/multimedia/shotcut/shotcut.info b/multimedia/shotcut/shotcut.info
new file mode 100644
index 000000000000..1e963993e839
--- /dev/null
+++ b/multimedia/shotcut/shotcut.info
@@ -0,0 +1,10 @@
+PRGNAM="shotcut"
+VERSION="15.08"
+HOMEPAGE="http://www.shotcut.org/"
+DOWNLOAD="https://www.dropbox.com/s/pm9x3rcgq2fbxb1/shotcut-debian7-x86-150810.tar.bz2"
+MD5SUM="cfb589fbcbaed452b15cba659465c147"
+DOWNLOAD_x86_64="https://www.dropbox.com/s/qhepbn47ds4c74m/shotcut-debian7-x86_64-150810.tar.bz2"
+MD5SUM_x86_64="d0a8dcbaedca699c0a4c419527a9ff4a"
+REQUIRES="pulseaudio jack-audio-connection-kit"
+MAINTAINER="Edinaldo P. Silva"
+EMAIL="edps.mundognu@gmail.com"
diff --git a/multimedia/shotcut/slack-desc b/multimedia/shotcut/slack-desc
new file mode 100644
index 000000000000..ba6e92ac6e55
--- /dev/null
+++ b/multimedia/shotcut/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+shotcut: shotcut (cross-platform video editor)
+shotcut:
+shotcut: Shotcut is a free, open source, cross-platform video editor.
+shotcut:
+shotcut: Home page: http://www.shotcut.org/
+shotcut:
+shotcut:
+shotcut:
+shotcut:
+shotcut:
+shotcut: