summaryrefslogtreecommitdiff
path: root/desktop/obshutdown/obshutdown.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/obshutdown/obshutdown.SlackBuild')
-rw-r--r--desktop/obshutdown/obshutdown.SlackBuild25
1 files changed, 12 insertions, 13 deletions
diff --git a/desktop/obshutdown/obshutdown.SlackBuild b/desktop/obshutdown/obshutdown.SlackBuild
index f09716b953..cfed21b012 100644
--- a/desktop/obshutdown/obshutdown.SlackBuild
+++ b/desktop/obshutdown/obshutdown.SlackBuild
@@ -1,8 +1,8 @@
#!/bin/sh
-
+#
# Slackware build script for obshutdown.
-
-# Copyright 2015 Edinaldo P. Silva, Rio de Janeiro, Brazil.
+#
+# Copyright 2015-2017 Edinaldo P. Silva, Rio de Janeiro, Brazil.
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,14 +23,13 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=obshutdown
-VERSION=${VERSION:-0.1_rc1}
-SRCVER=${SRCVER:-0.1-rc1}
+VERSION=${VERSION:-20130116}
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
@@ -41,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"
@@ -55,14 +54,16 @@ else
LIBDIRSUFFIX=""
fi
+SRCVER=${SRCVER:-c8c35347b13a12869850cd951ed4ebc2edd47c9c}
+
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$SRCVER.tar.gz
-mv $PRGNAM $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$SRCVER.tar.gz || tar xvf $CWD/$SRCVER.tar.gz
+mv $PRGNAM-$SRCVER $PRGNAM-$VERSION
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
@@ -90,10 +91,8 @@ make install DESTDIR=$PKG
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
-DOCS="AUTHORS ChangeLog COPYING README"
-
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
+cp AUTHORS ChangeLog COPYING README $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install