summaryrefslogtreecommitdiff
path: root/system/openrc/openrc.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/openrc/openrc.SlackBuild')
-rw-r--r--system/openrc/openrc.SlackBuild11
1 files changed, 5 insertions, 6 deletions
diff --git a/system/openrc/openrc.SlackBuild b/system/openrc/openrc.SlackBuild
index 0101d19f6b..4530a89a64 100644
--- a/system/openrc/openrc.SlackBuild
+++ b/system/openrc/openrc.SlackBuild
@@ -24,13 +24,13 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=openrc
-VERSION=${VERSION:-0.26.2}
+VERSION=${VERSION:-0.27}
BUILD=${BUILD:-2}
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 +41,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"
@@ -61,8 +61,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-[ -e "$CWD/$PRGNAM-$VERSION.tar.gz" ] && tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
-[ -e "$CWD/$VERSION.tar.gz" ] && tar xvf $CWD/$VERSION.tar.gz
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || tar xvf $CWD/$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \