diff options
author | Ryan P.C. McQuen <ryan.q@linux.com> | 2016-03-04 16:38:30 -0800 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-03-06 17:43:19 +0700 |
commit | d311dbc302d098849058d01cc7504fcdb15d9f3c (patch) | |
tree | f04db8df269c9890390eb15d6bd47ae2b3133542 /development/gisto/gisto.SlackBuild | |
parent | 73da0b6269149f909e614a28472b0ba785647f9d (diff) | |
download | slackbuilds-d311dbc302d098849058d01cc7504fcdb15d9f3c.tar.gz |
development/gisto: Updated for version 20160110.
Signed-off-by: Ryan P.C. McQuen <ryan.q@linux.com>
Diffstat (limited to 'development/gisto/gisto.SlackBuild')
-rw-r--r-- | development/gisto/gisto.SlackBuild | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/development/gisto/gisto.SlackBuild b/development/gisto/gisto.SlackBuild index 21c4331782..0d3def4ed5 100644 --- a/development/gisto/gisto.SlackBuild +++ b/development/gisto/gisto.SlackBuild @@ -22,7 +22,7 @@ PRGNAM=gisto SRCNAM=Gisto -VERSION=${VERSION:-0.3.1} +VERSION=${VERSION:-20160110} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -42,26 +42,31 @@ OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" LIBDIRSUFFIX="" - SRCARCH=x86 - SRCARCHSHORT=ia32 elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" LIBDIRSUFFIX="" - SRCARCH=x86 - SRCARCHSHORT=ia32 elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" - SRCARCH=x86_64 - SRCARCHSHORT=x64 else SLKCFLAGS="-O2" LIBDIRSUFFIX="" +fi + +SHORTSYSARCH=${SHORTSYSARCH:-`getconf LONG_BIT`} + +if [ "${SHORTSYSARCH}" = "32" ]; then SRCARCH=x86 SRCARCHSHORT=ia32 +elif [ "${SHORTSYSARCH}" = "64" ]; then + SRCARCH=x86_64 + SRCARCHSHORT=x64 +else + echo "Your architecture is not supported." + exit 1 fi -DOCS="README setup" +DOCS="" set -e @@ -69,7 +74,7 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $SRCNAM-$VERSION-linux\_$SRCARCHSHORT/ -tar xvpf $CWD/$SRCNAM-$VERSION-Linux\_$SRCARCH.tar.gz +unzip $CWD/$PRGNAM-$VERSION-linux-$SRCARCHSHORT.zip -d $SRCNAM-$VERSION-linux\_$SRCARCHSHORT/ cd $SRCNAM-$VERSION-linux\_$SRCARCHSHORT/ chown -R root:root . find -L . \ @@ -79,7 +84,7 @@ find -L . \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; mkdir -p $PKG/opt/$PRGNAM/ -cp -ar setup share gisto/* $PKG/opt/$PRGNAM/ +cp -ar * $PKG/opt/$PRGNAM/ mkdir -p $PKG/usr/bin/ ln -sf /opt/$PRGNAM/${PRGNAM} $PKG/usr/bin/ @@ -94,7 +99,7 @@ ln -sf /opt/$PRGNAM/pixmaps/${PRGNAM}.xpm $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/ +#cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION/ mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc |