From 76f4bac1c4682f3fd795fe3a0764875d36cfaffc Mon Sep 17 00:00:00 2001 From: Benjamin Trigona-Harany Date: Mon, 11 Dec 2017 17:39:53 -0800 Subject: desktop/ssr: Updated for version 0.3.9. Signed-off-by: Benjamin Trigona-Harany --- desktop/ssr/ssr.SlackBuild | 33 ++++++++++++++++----------------- 1 file changed, 16 insertions(+), 17 deletions(-) (limited to 'desktop/ssr/ssr.SlackBuild') diff --git a/desktop/ssr/ssr.SlackBuild b/desktop/ssr/ssr.SlackBuild index 4045b88bcc..d05528afa5 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 -- cgit v1.2.3