diff options
author | Erik Falor <ewfalor@gmail.com> | 2021-02-13 03:10:33 +0000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2021-02-14 06:27:57 +0700 |
commit | 8449f548e3e09dbeffecd61aa7b71727e0d5f016 (patch) | |
tree | 501480d71378bb0204ace7e849a4494214210401 /multimedia | |
parent | 384cb1eaef28b2e95f1f372d90aaaf8f0c2a2f38 (diff) | |
download | slackbuilds-8449f548e3e09dbeffecd61aa7b71727e0d5f016.tar.gz |
multimedia/vokoscreenNG: Added (screencast creator)
Signed-off-by: Dave Woodfall <dave@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'multimedia')
-rw-r--r-- | multimedia/vokoscreenNG/0001-Add-better-integration-for-Linux.patch | 110 | ||||
-rw-r--r-- | multimedia/vokoscreenNG/README | 2 | ||||
-rw-r--r-- | multimedia/vokoscreenNG/doinst.sh | 3 | ||||
-rw-r--r-- | multimedia/vokoscreenNG/slack-desc | 19 | ||||
-rw-r--r-- | multimedia/vokoscreenNG/vokoscreenNG.SlackBuild | 93 | ||||
-rw-r--r-- | multimedia/vokoscreenNG/vokoscreenNG.info | 10 |
6 files changed, 237 insertions, 0 deletions
diff --git a/multimedia/vokoscreenNG/0001-Add-better-integration-for-Linux.patch b/multimedia/vokoscreenNG/0001-Add-better-integration-for-Linux.patch new file mode 100644 index 0000000000..521793a33f --- /dev/null +++ b/multimedia/vokoscreenNG/0001-Add-better-integration-for-Linux.patch @@ -0,0 +1,110 @@ +The original patch was from an ArchLinux package +https://github.com/archlinux/svntogit-community/blob/packages/vokoscreen/trunk/0001-Add-better-integration-for-Linux.patch + +I got this one from https://github.com/City-busz/vokoscreenNG branch 'linux-support', and modified it to work with 3.0.8 + +commit 0a378409 (HEAD -> linux-support, origin/linux-support) +Author: Balló György <ballogyor@gmail.com> +Date: 2020-07-06 07:14:26 -0600 + + Add better integration for Linux + + Add AppStream metadata, add installation target. + +diff --git a/src/applications/INFO b/src/applications/INFO +index 4195de8f..1c1bd870 100644 +--- a/src/applications/INFO ++++ b/src/applications/INFO +@@ -1,2 +1,3 @@ ++vokoscreenNG.appdata.xml + vokoscreenNG.desktop + vokoscreenNG.png +diff --git a/src/applications/vokoscreenNG.appdata.xml b/src/applications/vokoscreenNG.appdata.xml +new file mode 100644 +index 00000000..883f4ae2 +--- /dev/null ++++ b/src/applications/vokoscreenNG.appdata.xml +@@ -0,0 +1,45 @@ ++<?xml version="1.0" encoding="UTF-8"?> ++<component type="desktop"> ++ <id>vokoscreenNG.desktop</id> ++ <metadata_license>CC0-1.0</metadata_license> ++ <project_license>GPL-2.0</project_license> ++ <name>vokoscreenNG</name> ++ <summary>Easy to use desktop recorder</summary> ++ <description> ++ <p>vokoscreenNG is an easy to use screencast creator to record educational videos, ++ live recordings of browser, installation, videoconferences, etc.</p> ++ </description> ++ <screenshots> ++ <screenshot type="default"> ++ <image>https://vokoscreen.volkoh.de/3.0/picture/screencast-0.png</image> ++ </screenshot> ++ <screenshot> ++ <image>https://vokoscreen.volkoh.de/3.0/picture/screencast-1.png</image> ++ </screenshot> ++ <screenshot> ++ <image>https://vokoscreen.volkoh.de/3.0/picture/screencast-2.png</image> ++ </screenshot> ++ <screenshot> ++ <image>https://vokoscreen.volkoh.de/3.0/picture/screencast-3.png</image> ++ </screenshot> ++ <screenshot> ++ <image>https://vokoscreen.volkoh.de/3.0/picture/screencast-4.png</image> ++ </screenshot> ++ <screenshot> ++ <image>https://vokoscreen.volkoh.de/3.0/picture/screencast-5.png</image> ++ </screenshot> ++ <screenshot> ++ <image>https://vokoscreen.volkoh.de/3.0/picture/screencast-6.png</image> ++ </screenshot> ++ <screenshot> ++ <image>https://vokoscreen.volkoh.de/3.0/picture/screencast-7.png</image> ++ </screenshot> ++ <screenshot> ++ <image>https://vokoscreen.volkoh.de/3.0/picture/screencast-8.png</image> ++ </screenshot> ++ </screenshots> ++ <url type="homepage">https://linuxecke.volkoh.de/vokoscreen/vokoscreen.html</url> ++ <url type="bugtracker">https://github.com/vkohaupt/vokoscreenNG/issues</url> ++ <url type="donation">https://linuxecke.volkoh.de/vokoscreen/vokoscreen-donate.html</url> ++ <developer_name>Volker Kohaupt</developer_name> ++</component> +diff --git a/src/vokoscreenNG.pro b/src/vokoscreenNG.pro +index 69bc5a33..fdf7fd07 100644 +--- a/src/vokoscreenNG.pro ++++ b/src/vokoscreenNG.pro +@@ -163,4 +163,29 @@ + # ciscoOpenh264 + win32:include(ciscoOpenh264/ciscoOpenh264.pri) + +-unix:include(wayland/wayland.pri) +\ No newline at end of file ++unix:include(wayland/wayland.pri) ++ ++unix:!macx { ++ isEmpty(PREFIX) { ++ PREFIX = /usr/local ++ } ++ isEmpty(BINDIR) { ++ BINDIR = $$PREFIX/bin ++ } ++ isEmpty(DATADIR) { ++ DATADIR = $$PREFIX/share ++ } ++ ++ target.path = $$BINDIR ++ ++ icon.files = applications/vokoscreenNG.png ++ icon.path = $$DATADIR/icons/hicolor/256x256/apps/ ++ ++ desktop.files = applications/vokoscreenNG.desktop ++ desktop.path = $$DATADIR/applications/ ++ ++ appdata.files = applications/vokoscreenNG.appdata.xml ++ appdata.path = $$DATADIR/metainfo/ ++ ++ INSTALLS += target icon desktop appdata ++} +Only in vokoscreenNG-3.0.8/src: vokoscreenNG.pro.orig +Only in vokoscreenNG-3.0.8/src: vokoscreenNG.pro.rej diff --git a/multimedia/vokoscreenNG/README b/multimedia/vokoscreenNG/README new file mode 100644 index 0000000000..dab01760cd --- /dev/null +++ b/multimedia/vokoscreenNG/README @@ -0,0 +1,2 @@ +vokoscreenNG is an easy to use screencast creator to record educational +videos, live recordings of browser, installation, videoconferences, etc. diff --git a/multimedia/vokoscreenNG/doinst.sh b/multimedia/vokoscreenNG/doinst.sh new file mode 100644 index 0000000000..5fb28930db --- /dev/null +++ b/multimedia/vokoscreenNG/doinst.sh @@ -0,0 +1,3 @@ +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi diff --git a/multimedia/vokoscreenNG/slack-desc b/multimedia/vokoscreenNG/slack-desc new file mode 100644 index 0000000000..f8188ae4cc --- /dev/null +++ b/multimedia/vokoscreenNG/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------------------------------------------------------| +vokoscreenNG: vokoscreenNG (screencast creator) +vokoscreenNG: +vokoscreenNG: vokoscreenNG is an easy to use screencast creator to record +vokoscreenNG: educational videos, live recordings of browser, installation, +vokoscreenNG: videoconferences, etc. +vokoscreenNG: +vokoscreenNG: +vokoscreenNG: +vokoscreenNG: +vokoscreenNG: http://linuxecke.volkoh.de/vokoscreen/vokoscreen.html +vokoscreenNG: diff --git a/multimedia/vokoscreenNG/vokoscreenNG.SlackBuild b/multimedia/vokoscreenNG/vokoscreenNG.SlackBuild new file mode 100644 index 0000000000..e2659738bc --- /dev/null +++ b/multimedia/vokoscreenNG/vokoscreenNG.SlackBuild @@ -0,0 +1,93 @@ +#!/bin/sh + +# Slackware build script for VokoscreenNG + +# Erik Falor | Logan Utah, USA | ewfalor@gmail.com +# 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=vokoscreenNG +VERSION=${VERSION:-3.0.8} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i586 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +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 {} \; + +patch -Np1 -i $CWD/0001-Add-better-integration-for-Linux.patch + +qmake-qt5 PREFIX=/usr QMAKE_CXXFLAGS="$SLKCFLAGS" src/vokoscreenNG.pro +make +make INSTALL_ROOT=$PKG install + +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 -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + CHANGELOG.md COPYING 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 +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/vokoscreenNG/vokoscreenNG.info b/multimedia/vokoscreenNG/vokoscreenNG.info new file mode 100644 index 0000000000..b797104b15 --- /dev/null +++ b/multimedia/vokoscreenNG/vokoscreenNG.info @@ -0,0 +1,10 @@ +PRGNAM="vokoscreenNG" +VERSION="3.0.8" +HOMEPAGE="https://linuxecke.volkoh.de/vokoscreen/vokoscreen.html" +DOWNLOAD="https://github.com/vkohaupt/vokoscreenNG/archive/3.0.8/vokoscreenNG-3.0.8.tar.gz" +MD5SUM="88aacbf74cb543ed0db2397abe3ac74a" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="qt5 ffmpeg lame" +MAINTAINER="Erik Falor" +EMAIL="ewfalor@gmail.com" |