ham/baudline: Fixed ARCH and PKGTYPE.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
This commit is contained in:
parent
e317365a29
commit
87da139fa5
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue