diff options
Diffstat (limited to 'ham/baudline')
-rw-r--r-- | ham/baudline/baudline.SlackBuild | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/ham/baudline/baudline.SlackBuild b/ham/baudline/baudline.SlackBuild index 562268d1bfc24..de6e581cca3af 100644 --- a/ham/baudline/baudline.SlackBuild +++ b/ham/baudline/baudline.SlackBuild @@ -25,9 +25,10 @@ VERSION=${VERSION:-1.08} BUILD=${BUILD:-2} TAG=${TAG:-_SBo} -case "$( uname -m )" in - i?86) ARCH=x86 ;; - x86_64) ARCH=x86_64 ;; +case "${ARCH:-$(uname -m)}" in + i?86) SRCARCH=i686; ARCHDIR=x86 ;; + x86_64) SRCARCH=x86_64; ARCHDIR=x86_64 ;; + *) echo "$ARCH is not supported"; exit 1 ;; esac CWD=$(pwd) @@ -40,9 +41,9 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION -tar -xvf $CWD/$PRGNAM\_$VERSION\_linux_$ARCH.tar.gz -cd $PRGNAM\_$VERSION\_linux_$ARCH +rm -rf ${PRGNAM}_${VERSION}_linux_${ARCHDIR} +tar -xvf $CWD/${PRGNAM}_${VERSION}_linux_${SRCARCH}.tar.gz +cd ${PRGNAM}_${VERSION}_linux_${ARCHDIR} chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -80,4 +81,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-$ARCH-$BUILD$TAG${PKGTYPE:-.tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |