diff options
Diffstat (limited to 'libraries/libopenshot')
-rw-r--r-- | libraries/libopenshot/libopenshot.SlackBuild | 28 | ||||
-rw-r--r-- | libraries/libopenshot/libopenshot.info | 10 |
2 files changed, 22 insertions, 16 deletions
diff --git a/libraries/libopenshot/libopenshot.SlackBuild b/libraries/libopenshot/libopenshot.SlackBuild index cb04349871..bbbca9d82b 100644 --- a/libraries/libopenshot/libopenshot.SlackBuild +++ b/libraries/libopenshot/libopenshot.SlackBuild @@ -1,8 +1,8 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for libopenshot -# Copyright 2016-2019 Christoph Willing, Brisbane Australia +# Copyright 2016-2023 Christoph Willing, Brisbane Australia # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,10 +22,13 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=libopenshot -VERSION=${VERSION:-0.2.3} -BUILD=${BUILD:-1} +VERSION=${VERSION:-0.3.2} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -35,7 +38,11 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -62,7 +69,6 @@ cd $TMP rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION -cp -p $CWD/zmq.hpp include/ chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -70,6 +76,8 @@ 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 {} \; +sed -e 's|CMAKE_CXX_STANDARD 14|CMAKE_CXX_STANDARD 17|' -i CMakeLists.txt +#patch -p1 < $CWD/512.patch mkdir -p build cd build cmake \ @@ -77,10 +85,10 @@ cd build -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_INSTALL_PREFIX=/usr \ -DLIB_SUFFIX=${LIBDIRSUFFIX} \ - -DZMQ_INCLUDE_DIR=$TMP/$PRGNAM-$VERSION/include \ -DENABLE_RUBY=OFF \ -DCMAKE_BUILD_TYPE=Release .. make + make doc make install DESTDIR=$PKG cd .. @@ -88,12 +96,12 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a AUTHORS COPYING INSTALL.md README.md \ - $PKG/usr/doc/$PRGNAM-$VERSION +mv $PKG/usr/share/doc/$PRGNAM/API $PKG/usr/doc/$PRGNAM-$VERSION && rm -rf $PKG/usr/share +cp -a AUTHORS INSTALL.md LICENSES README.md $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 cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/libraries/libopenshot/libopenshot.info b/libraries/libopenshot/libopenshot.info index d1b65cdc5a..3625f7c8cc 100644 --- a/libraries/libopenshot/libopenshot.info +++ b/libraries/libopenshot/libopenshot.info @@ -1,12 +1,10 @@ PRGNAM="libopenshot" -VERSION="0.2.3" +VERSION="0.3.2" HOMEPAGE="https://github.com/OpenShot/libopenshot" -DOWNLOAD="https://github.com/OpenShot/libopenshot/archive/v0.2.3/libopenshot-0.2.3.tar.gz \ - https://raw.githubusercontent.com/zeromq/cppzmq/014628c/zmq.hpp" -MD5SUM="7ba70ff88ef52f658ce550aad1f5eaa1 \ - 56f264ec5604a5576e0d836d89c38c77" +DOWNLOAD="https://github.com/OpenShot/libopenshot/archive/v0.3.2/libopenshot-0.3.2.tar.gz" +MD5SUM="75f25beb22296368ba2d54c2af615ef4" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="qt5 python3 ffmpeg zeromq unittest-cpp libopenshot-audio" +REQUIRES="cppzmq protobuf3 unittest-cpp libopenshot-audio" MAINTAINER="Christoph Willing" EMAIL="chris.willing@linux.com" |