system/megacli: Fix BUILD variable usage.

This is for the internal build number and can be passed through the
environment, 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-11-07 22:04:21 +09:00 committed by Willy Sudiarto Raharjo
parent 7b2e9b3d87
commit 20f661ac89
No known key found for this signature in database
GPG key ID: 3F617144D7238786

View file

@ -30,6 +30,7 @@ RPMNAM=MegaCli
VERSION=${VERSION:-8.07.14}
ZIPVER="$(echo $VERSION | sed -e 's/\./\-/g')"
BUILD=${BUILD:-1}
RPMBUILD=${RPMBUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -68,7 +69,7 @@ rm -rf $PRGNAM-$VERSION
unzip -d $PRGNAM-$VERSION $CWD/${ZIPVER}_$ZIPNAM.zip
cd $PRGNAM-$VERSION/Linux
rpm2cpio < ${RPMNAM}-${VERSION}-${BUILD}.noarch.rpm | cpio -imdv
rpm2cpio < ${RPMNAM}-${VERSION}-${RPMBUILD}.noarch.rpm | cpio -imdv
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \