--- a/lrzip.SlackBuild 2021-02-22 09:27:26.514631343 +0200 +++ b/lrzip.SlackBuild 2021-02-22 09:32:53.406395851 +0200 @@ -55,6 +55,12 @@ elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" +elif [ "$ARCH" = "aarch64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +elif [ "$ARCH" = "riscv64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" else SLKCFLAGS="-O2" LIBDIRSUFFIX="" @@ -77,6 +83,8 @@ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \+ +[[ "$ARCH" == "aarch64" || "$ARCH" == "riscv64" ]] && OPTIONS="--disable-asm" + CFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ @@ -85,6 +93,7 @@ --mandir=/usr/man \ --docdir=/usr/doc/$PKGNAM-$VERSION \ --disable-static \ + $OPTIONS \ --build=$ARCH-slackware-linux || exit 1 make $NUMJOBS || make || exit 1