summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdinaldo P. Silva <edps.mundognu@gmail.com>2017-07-23 16:04:32 +0100
committerDavid Spencer <idlemoor@slackbuilds.org>2017-07-23 16:04:32 +0100
commitae8c4bbcee5d0346ee3430d9fdd8328c5fe54765 (patch)
tree5c00267fa1746ccd46d9f83250cbdb20f4d544a5
parent1279a238615fa2757d3aaa9e4b98a6ee9c2b0fef (diff)
downloadslackbuilds-ae8c4bbcee5d0346ee3430d9fdd8328c5fe54765.tar.gz
desktop/obshutdown: Updated for version 20130116.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
-rw-r--r--desktop/obshutdown/obshutdown.SlackBuild25
-rw-r--r--desktop/obshutdown/obshutdown.info6
2 files changed, 15 insertions, 16 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
diff --git a/desktop/obshutdown/obshutdown.info b/desktop/obshutdown/obshutdown.info
index 990c36e5fd..bc1b1b64d2 100644
--- a/desktop/obshutdown/obshutdown.info
+++ b/desktop/obshutdown/obshutdown.info
@@ -1,8 +1,8 @@
PRGNAM="obshutdown"
-VERSION="0.1_rc1"
+VERSION="20130116"
HOMEPAGE="https://github.com/panjandrum/obshutdown/"
-DOWNLOAD="https://sourceforge.net/projects/slackbuildsdirectlinks/files/obshutdown/obshutdown-0.1-rc1.tar.gz"
-MD5SUM="9dcf89790a435faa7a182767a4d958e1"
+DOWNLOAD="https://github.com/panjandrum/obshutdown/archive/c8c35347b13a12869850cd951ed4ebc2edd47c9c.tar.gz"
+MD5SUM="93ed7131d15117549f05e60cb7c140b9"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""