multimedia/shotcut: Updated for version 21.12.24.

Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Matteo Bernardini 2021-12-28 11:46:38 +01:00 committed by Willy Sudiarto Raharjo
parent cb11272064
commit 410899ba84
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
2 changed files with 15 additions and 7 deletions

View File

@ -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

View File

@ -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"