summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--multimedia/shotcut/shotcut.SlackBuild16
-rw-r--r--multimedia/shotcut/shotcut.info6
2 files changed, 15 insertions, 7 deletions
diff --git a/multimedia/shotcut/shotcut.SlackBuild b/multimedia/shotcut/shotcut.SlackBuild
index 3cdac26587..7b7a27f02c 100644
--- a/multimedia/shotcut/shotcut.SlackBuild
+++ b/multimedia/shotcut/shotcut.SlackBuild
@@ -26,7 +26,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=shotcut
-VERSION=${VERSION:-18.11.18}
+VERSION=${VERSION:-21.12.24}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -85,6 +85,7 @@ find -L . \
# Fix libpng warning.
# [Warning] <> libpng warning: iCCP: profile 'icc': 'RGB ': RGB color space not permitted on grayscale PNG
+rm -fR packaging/windows/Microsoft* # avoids find's choking
for i in $(find . -name "*\.png"); do
mv $i ${i}.old.png
convert $i.old.png $i
@@ -92,15 +93,22 @@ for i in $(find . -name "*\.png"); do
rm $i.old.png
done
-qmake-qt5 PREFIX="/usr" QMAKE_CFLAGS+="$SLKCFLAGS" QMAKE_CXXFLAGS+="$SLKCFLAGS" \
- CONFIG+=release SHOTCUT_VERSION="$VERSION" $PRGNAM.pro
-
+mkdir -p build
+cd build
+qmake PREFIX="/usr" QMAKE_CFLAGS+="$SLKCFLAGS" QMAKE_CXXFLAGS+="$SLKCFLAGS" \
+ CONFIG+=release SHOTCUT_VERSION="$VERSION" DEFINES+=SHOTCUT_NOUPGRADE ..
make
+lrelease ../translations/*.ts
make install INSTALL_ROOT=$PKG
+cd ..
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
+mv $PKG/usr/share/man $PKG/usr/man
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+
find $PKG/usr/share/$PRGNAM -type f -exec chmod 0644 '{}' \;
mkdir -p $PKG/usr/share/applications
diff --git a/multimedia/shotcut/shotcut.info b/multimedia/shotcut/shotcut.info
index a8a327e58d..1cf57d99db 100644
--- a/multimedia/shotcut/shotcut.info
+++ b/multimedia/shotcut/shotcut.info
@@ -1,8 +1,8 @@
PRGNAM="shotcut"
-VERSION="18.11.18"
+VERSION="21.12.24"
HOMEPAGE="https://www.shotcut.org/"
-DOWNLOAD="https://github.com/mltframework/shotcut/archive/v18.11.18/shotcut-18.11.18.tar.gz"
-MD5SUM="60c7329716f3ac4b170a17073917a939"
+DOWNLOAD="https://github.com/mltframework/shotcut/archive/v21.12.24/shotcut-21.12.24.tar.gz"
+MD5SUM="4aa9c69e35b45d33c924376ea518f469"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="jack x264 ladspa_sdk"