--- a/dmapi.SlackBuild 2021-02-12 22:49:52.225421978 +0200 +++ b/dmapi.SlackBuild 2021-02-12 22:51:22.041266760 +0200 @@ -46,6 +46,10 @@ if [ "$ARCH" = "x86_64" ]; then LIBDIRSUFFIX="64" +elif [ "$ARCH" = "aarch64" ]; then + LIBDIRSUFFIX="64" +elif [ "$ARCH" = "riscv64" ]; then + LIBDIRSUFFIX="64" else LIBDIRSUFFIX="" fi @@ -70,6 +74,7 @@ # Thanks, Debian zcat $CWD/bug799162.patch.gz | patch -p1 --verbose || exit 1 +xzcat $CWD/no-getdents-aarch64.diff.xz | patch -p1 --verbose || exit 1 # Make sure you have the same version of autoconf as the # developers did... ;-) @@ -84,7 +89,8 @@ --libexecdir=/usr/lib${LIBDIRSUFFIX} \ --includedir=/usr/include \ --mandir=/usr/man \ - --datadir=/usr/share || exit 1 + --datadir=/usr/share \ + --build=$ARCH-slackware-linux || exit 1 make || exit 1 make install DESTDIR=$PKG || exit 1 @@ -126,4 +132,3 @@ cd $PKG /sbin/makepkg -l y -c n $TMP/dmapi-$(echo $VERSION | tr - _ )-$ARCH-$BUILD.txz -