From b7d62ad1ee600ca38945080a95c6f5c59726e668 Mon Sep 17 00:00:00 2001 From: DhabyX Date: Wed, 5 Apr 2017 10:50:58 +0100 Subject: development/gisto: Updated for version 0.3.1 + new maintainer. Signed-off-by: David Spencer --- development/gisto/gisto.SlackBuild | 38 ++++++++++---------------------------- 1 file changed, 10 insertions(+), 28 deletions(-) (limited to 'development/gisto/gisto.SlackBuild') diff --git a/development/gisto/gisto.SlackBuild b/development/gisto/gisto.SlackBuild index 44710fd016c24..091b0aca47195 100644 --- a/development/gisto/gisto.SlackBuild +++ b/development/gisto/gisto.SlackBuild @@ -1,6 +1,7 @@ #!/bin/sh # Slackware build script for gisto # Ryan P.C. McQuen | Everett, WA | ryanpcmcquen@member.fsf.org +# 2017 | Dhaby Xiloj | slack.dhabyx@gmail.com # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -22,13 +23,13 @@ PRGNAM=gisto SRCNAM=Gisto -VERSION=${VERSION:-20160110} -BUILD=${BUILD:-2} +VERSION=${VERSION:-0.3.1} +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 @@ -39,30 +40,14 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2 -fPIC" - LIBDIRSUFFIX="64" -else - SLKCFLAGS="-O2" - LIBDIRSUFFIX="" -fi - -SHORTSYSARCH=${SHORTSYSARCH:-`getconf LONG_BIT`} - -if [ "${SHORTSYSARCH}" = "32" ]; then +if [ "$ARCH" = "i586" ] || [ "$ARCH" = "i686" ]; then SRCARCH=x86 SRCARCHSHORT=ia32 -elif [ "${SHORTSYSARCH}" = "64" ]; then +elif [ "$ARCH" = "x86_64" ]; then SRCARCH=x86_64 SRCARCHSHORT=x64 else - echo "Your architecture is not supported." + echo "$ARCH architecture is not supported." exit 1 fi @@ -74,7 +59,7 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $SRCNAM-$VERSION-linux\_$SRCARCHSHORT/ -unzip $CWD/$PRGNAM-$VERSION-linux-$SRCARCHSHORT.zip -d $SRCNAM-$VERSION-linux\_$SRCARCHSHORT/ +tar xvf $CWD/$SRCNAM-$VERSION-Linux\_$SRCARCH.tar.gz cd $SRCNAM-$VERSION-linux\_$SRCARCHSHORT/ chown -R root:root . find -L . \ @@ -84,7 +69,8 @@ find -L . \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; mkdir -p $PKG/opt/$PRGNAM/pixmaps/ -cp -ar * $PKG/opt/$PRGNAM/ +cp -ar $PRGNAM/* $PKG/opt/$PRGNAM/ +cp -ar share $PKG/opt/$PRGNAM/ mkdir -p $PKG/usr/bin/ ln -sf /opt/$PRGNAM/${PRGNAM} $PKG/usr/bin/ @@ -93,10 +79,6 @@ mkdir -p $PKG/usr/share/{applications,menu}/ ln -sf /opt/$PRGNAM/share/applications/$PRGNAM.desktop $PKG/usr/share/applications/ ln -sf /opt/$PRGNAM/share/menu/$PRGNAM $PKG/usr/share/menu -mkdir -p $PKG/usr/share/pixmaps/ -cp $CWD/${PRGNAM}.png $PKG/opt/$PRGNAM/pixmaps/ -ln -sf /opt/$PRGNAM/pixmaps/${PRGNAM}.png $PKG/usr/share/pixmaps/ - mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild #cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION/ -- cgit v1.2.3