development/crystal-lang: Fix BUILD usage.

BUILD is meant for users of the script, not upstream build numbers.

Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Andrew Clemons 2022-03-23 18:09:14 +13:00 committed by Willy Sudiarto Raharjo
parent d4181b25bd
commit df77f744d8
No known key found for this signature in database
GPG key ID: 3F617144D7238786

View file

@ -28,6 +28,7 @@ PRGNAM=crystal-lang
BIN=crystal
VERSION=${VERSION:-0.34.0}
BUILD=${BUILD:-1}
SRCBUILD=${SRCBUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -67,8 +68,8 @@ rm -rf $PKG
mkdir -p $TMP $PKG $PKG/usr $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$BIN-$VERSION-$BUILD-linux-$ARCH.tar.gz
mv $BIN-$VERSION-$BUILD $PRGNAM-$VERSION
tar xvf $CWD/$BIN-$VERSION-$SRCBUILD-linux-$ARCH.tar.gz
mv $BIN-$VERSION-$SRCBUILD $PRGNAM-$VERSION
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \