diff options
Diffstat (limited to 'academic/gaw3/gaw3.SlackBuild')
-rw-r--r-- | academic/gaw3/gaw3.SlackBuild | 22 |
1 files changed, 5 insertions, 17 deletions
diff --git a/academic/gaw3/gaw3.SlackBuild b/academic/gaw3/gaw3.SlackBuild index b092a383ca..da653ea459 100644 --- a/academic/gaw3/gaw3.SlackBuild +++ b/academic/gaw3/gaw3.SlackBuild @@ -23,13 +23,13 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=gaw3 -VERSION=${VERSION:-20150228} +VERSION=${VERSION:-20170326} 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" @@ -80,7 +80,6 @@ make install DESTDIR=$PKG mkdir -p $PKG/usr/share/icons/hicolor/48x48/apps cp $CWD/$PRGNAM.png $PKG/usr/share/icons/hicolor/48x48/apps/$PRGNAM.png -chmod -x $PKG/usr/share/icons/hicolor/48x48/apps/$PRGNAM.png 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 @@ -94,18 +93,7 @@ cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh mkdir -p $PKG/usr/share/applications -cat <<EOF > $PKG/usr/share/applications/$PRGNAM.desktop -[Desktop Entry] -Encoding=UTF-8 -Name=Gaw3 -Comment=Analog Waveform Viewer -Exec=gaw -Terminal=false -Type=Application -Categories=Science -Icon=gaw3 -StartupNotify=false -EOF +cp $CWD/$PRGNAM.desktop $PKG/usr/share/applications rm $PKG/usr/share/applications/gaw.desktop rm -r $PKG/usr/share/pixmaps |