summaryrefslogtreecommitdiff
path: root/development/acpica/acpica.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'development/acpica/acpica.SlackBuild')
-rw-r--r--development/acpica/acpica.SlackBuild17
1 files changed, 6 insertions, 11 deletions
diff --git a/development/acpica/acpica.SlackBuild b/development/acpica/acpica.SlackBuild
index 734499bb12..5406dd605c 100644
--- a/development/acpica/acpica.SlackBuild
+++ b/development/acpica/acpica.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=acpica
-VERSION=${VERSION:-20170531}
+VERSION=${VERSION:-20210331}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -43,19 +43,15 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
- BITS="32"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
- BITS="32"
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
- BITS="64"
else
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
- BITS="32"
fi
set -e
@@ -63,9 +59,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-unix2-$VERSION
-tar xvf $CWD/$PRGNAM-unix2-$VERSION.tar.gz
-cd $PRGNAM-unix2-$VERSION
+rm -rf $PRGNAM-unix-$VERSION
+tar xvf $CWD/$PRGNAM-unix-$VERSION.tar.gz
+cd $PRGNAM-unix-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -74,9 +70,8 @@ find -L . \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
cd generate/unix
- CFLAGS="$SLKCFLAGS -fcommon -Wno-error=format-overflow -Wno-error=stringop-truncation" \
- CXXFLAGS="$SLKCFLAGS" \
- make BITS=$BITS
+ OPT_CFLAGS="$SLKCFLAGS" \
+ make
make install DESTDIR=$PKG
cd -