summaryrefslogtreecommitdiff
path: root/network/rt2500/rt2500.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/rt2500/rt2500.SlackBuild')
-rw-r--r--network/rt2500/rt2500.SlackBuild14
1 files changed, 8 insertions, 6 deletions
diff --git a/network/rt2500/rt2500.SlackBuild b/network/rt2500/rt2500.SlackBuild
index b87e5803bc..715183a6c9 100644
--- a/network/rt2500/rt2500.SlackBuild
+++ b/network/rt2500/rt2500.SlackBuild
@@ -23,20 +23,22 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
+# Modified by the SlackBuilds.org Project.
+
set -e
PRGNAM=rt2500
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-CWD=`pwd`
+CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-FULLVERSION=`tar -tzf rt2500-cvs-daily.tar.gz |head -1|cut -d- -f3|tr -d \/`
-VERSION=`tar -tzf rt2500-cvs-daily.tar.gz | head -1 | cut -d- -f3 | tr -d \/ | colrm 9`
-_KERNELVER=${_KERNELVER:-`uname -r`}
-_KERNMINOR=`echo ${_KERNELVER} | awk -F "." '{ print $2 }'`
+FULLVERSION=$(tar -tzf rt2500-cvs-daily.tar.gz |head -1|cut -d- -f3|tr -d \/)
+VERSION=$(tar -tzf rt2500-cvs-daily.tar.gz | head -1 | cut -d- -f3 | tr -d \/ | colrm 9)
+_KERNELVER=${_KERNELVER:-$(uname -r)}
+_KERNMINOR=$(echo ${_KERNELVER} | awk -F "." '{ print $2 }')
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
@@ -81,4 +83,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/${PRGNAM}-${VERSION}_${_KERNELVER}-${ARCH}-${BUILD}${TAG}.tgz
+/sbin/makepkg -l y -c n $OUTPUT/${PRGNAM}-${VERSION}_$(echo $_KERNELVER | tr - _)-${ARCH}-${BUILD}${TAG}.tgz