--- procps.SlackBuild 2006-06-25 20:36:17.000000000 -0400 +++ procps.SlackBuild.s390x 2006-09-05 22:55:36.000000000 -0400 @@ -17,7 +17,7 @@ SLKCFLAGS="-O2 -march=i386 -mcpu=i686" elif [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" -elif [ "$ARCH" = "s390" ]; then +elif [ "$ARCH" = "s390x" ]; then SLKCFLAGS="-O2" elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2" @@ -51,10 +51,10 @@ zcat $CWD/procps.w.showfrom.diff.gz | patch -p1 --verbose || exit 1 make OPT="$SLKCFLAGS" -mkdir -p $PKG/lib $PKG/bin $PKG/sbin $PKG/usr/bin +mkdir -p $PKG/lib64 $PKG/bin $PKG/sbin $PKG/usr/bin cat free > $PKG/bin/free cat ps/ps> $PKG/bin/ps -cat proc/libproc-${SOVER}.so > $PKG/lib/libproc-${SOVER}.so +cat proc/libproc-${SOVER}.so > $PKG/lib64/libproc-${SOVER}.so cat pkill > $PKG/usr/bin/pkill cat skill > $PKG/usr/bin/skill cat pmap > $PKG/usr/bin/pmap @@ -133,7 +133,7 @@ done # Fix permissions: -chmod 755 $PKG/lib/* $PKG/bin/* $PKG/sbin/* $PKG/usr/bin/* +chmod 755 $PKG/lib64/* $PKG/bin/* $PKG/sbin/* $PKG/usr/bin/* ( cd $PKG find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null