diff options
author | Andrzej Telszewski <atelszewski@gmail.com> | 2017-01-15 23:50:24 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-01-15 23:50:24 +0700 |
commit | 201fb542179b757ca3ceed59363f0b72a1097960 (patch) | |
tree | c308626c10f1d8be84d4a772e1d078370e740d68 /academic/pulseview/pulseview.SlackBuild | |
parent | 264102d05308c98bb56dabb56315776e3881df50 (diff) | |
download | slackbuilds-201fb542179b757ca3ceed59363f0b72a1097960.tar.gz |
academic/pulseview: Updated for version 0.3.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'academic/pulseview/pulseview.SlackBuild')
-rw-r--r-- | academic/pulseview/pulseview.SlackBuild | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/academic/pulseview/pulseview.SlackBuild b/academic/pulseview/pulseview.SlackBuild index f3ab3cfb2b..790d42a045 100644 --- a/academic/pulseview/pulseview.SlackBuild +++ b/academic/pulseview/pulseview.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for PulseView -# Copyright 2015 Andrzej Telszewski, Sabadell +# Copyright 2017 Andrzej Telszewski, Banie # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,13 +23,13 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=pulseview -VERSION=${VERSION:-0.2.0} +VERSION=${VERSION:-0.3.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac @@ -40,8 +40,8 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" @@ -76,19 +76,21 @@ cd build -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_MANDIR=/usr/man \ - -DCMAKE_BUILD_TYPE=Release .. + -DCMAKE_BUILD_TYPE=Release \ + -DENABLE_TESTS=n \ + .. 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 + mkdir -p $PKG/usr/share/applications cp -a contrib/pulseview.desktop $PKG/usr/share/applications mkdir -p $PKG/usr/share/icons/hicolor/48x48/apps cp -a icons/sigrok-logo-notext.png $PKG/usr/share/icons/hicolor/48x48/apps -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 - gzip -9 $PKG/usr/man/man1/pulseview.1 mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION |