--- windowmaker.SlackBuild	2006-04-03 20:47:54.000000000 -0400
+++ windowmaker.SlackBuild.s390x	2006-09-02 22:27:26.000000000 -0400
@@ -12,7 +12,7 @@
   SLKCFLAGS="-O2 -march=i386 -mcpu=i686"
 elif [ "$ARCH" = "i486" ]; then
   SLKCFLAGS="-O2 -march=i486 -mcpu=i686"
-elif [ "$ARCH" = "s390" ]; then
+elif [ "$ARCH" = "s390x" ]; then
   SLKCFLAGS="-O2"
 elif [ "$ARCH" = "x86_64" ]; then
   SLKCFLAGS="-O2"
@@ -43,6 +43,7 @@
 NLSDIR=/usr/share/locale \
 ./configure \
   --prefix=/usr \
+  --libdir='${exec_prefix}/lib64' \
   --sysconfdir=/etc/X11 \
   --enable-gnome \
   --enable-kde \
@@ -71,6 +72,7 @@
   $ARCH-slackware-linux
 make
 make install DESTDIR=$PKG
+chown -R root:bin $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
