aboutsummaryrefslogtreecommitdiff
path: root/desktop/ssr
diff options
context:
space:
mode:
authorBenjamin Trigona-Harany <bosth@alumni.sfu.ca>2017-12-11 17:39:53 -0800
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-12-16 07:31:52 +0700
commit76f4bac1c4682f3fd795fe3a0764875d36cfaffc (patch)
tree40161bed7ae701ac0f4fea70615a763b042fb452 /desktop/ssr
parent9607ca280a7ec40075b17a385044a36940643ab9 (diff)
desktop/ssr: Updated for version 0.3.9.
Signed-off-by: Benjamin Trigona-Harany <bosth@alumni.sfu.ca>
Diffstat (limited to 'desktop/ssr')
-rw-r--r--desktop/ssr/Benchmark.cpp.patch11
-rw-r--r--desktop/ssr/ssr.SlackBuild33
-rw-r--r--desktop/ssr/ssr.info6
3 files changed, 19 insertions, 31 deletions
diff --git a/desktop/ssr/Benchmark.cpp.patch b/desktop/ssr/Benchmark.cpp.patch
deleted file mode 100644
index 9161a4ba820f..000000000000
--- a/desktop/ssr/Benchmark.cpp.patch
+++ /dev/null
@@ -1,11 +0,0 @@
-diff -Naur ssr-0.3.6/src/Benchmark.cpp ssr-0.3.6.patched/src/Benchmark.cpp
---- ssr-0.3.6/src/Benchmark.cpp 2015-11-02 13:13:49.000000000 -0800
-+++ ssr-0.3.6.patched/src/Benchmark.cpp 2016-09-22 20:58:57.656010201 -0700
-@@ -19,6 +19,7 @@
-
- #include "Benchmark.h"
-
-+#include <random>
- #include "AVWrapper.h"
- #include "CPUFeatures.h"
- #include "FastScaler_Convert.h"
diff --git a/desktop/ssr/ssr.SlackBuild b/desktop/ssr/ssr.SlackBuild
index 4045b88bcc2b..d05528afa500 100644
--- a/desktop/ssr/ssr.SlackBuild
+++ b/desktop/ssr/ssr.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=ssr
-VERSION=${VERSION:-0.3.8}
+VERSION=${VERSION:-0.3.9}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -70,30 +70,29 @@ find -L . \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
if [ "${JACK:-off}" = "on" ]; then
- jack="--enable-jack"
+ jack="-DWITH_JACK=TRUE"
else
- jack="--without-jack"
+ jack="-DWITH_JACK=FALSE"
fi
-patch -p1 < $CWD/Benchmark.cpp.patch
+mkdir build
+cd build
+ cmake $jack \
+ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DWITH_PULSEAUDIO=TRUE \
+ ..
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
-./configure \
- --prefix=/usr \
- --libdir=/usr/lib${LIBDIRSUFFIX} \
- --mandir=/usr/man \
- --disable-assert \
- --enable-pulseaudio \
- $jack \
- --build=$ARCH-slackware-linux
-
-make
-make install DESTDIR=$PKG
+ make
+ make install DESTDIR=$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
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
diff --git a/desktop/ssr/ssr.info b/desktop/ssr/ssr.info
index decb1e667277..6b7cc534f371 100644
--- a/desktop/ssr/ssr.info
+++ b/desktop/ssr/ssr.info
@@ -1,8 +1,8 @@
PRGNAM="ssr"
-VERSION="0.3.8"
+VERSION="0.3.9"
HOMEPAGE="http://www.maartenbaert.be/simplescreenrecorder/"
-DOWNLOAD="https://github.com/MaartenBaert/ssr/archive/0.3.8/ssr-0.3.8.tar.gz"
-MD5SUM="722eda8b3af5137f2f173a8492fb2cf1"
+DOWNLOAD="https://github.com/MaartenBaert/ssr/archive/0.3.9/ssr-0.3.9.tar.gz"
+MD5SUM="5caa2a10128189d93a7a0699014d3925"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="ffmpeg"