summaryrefslogtreecommitdiff
path: root/desktop/ssr/ssr.SlackBuild
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/ssr.SlackBuild
parent9607ca280a7ec40075b17a385044a36940643ab9 (diff)
downloadslackbuilds-76f4bac1c4682f3fd795fe3a0764875d36cfaffc.tar.gz
desktop/ssr: Updated for version 0.3.9.
Signed-off-by: Benjamin Trigona-Harany <bosth@alumni.sfu.ca>
Diffstat (limited to 'desktop/ssr/ssr.SlackBuild')
-rw-r--r--desktop/ssr/ssr.SlackBuild33
1 files changed, 16 insertions, 17 deletions
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