--- SlackBuild 2006-04-03 20:27:42.000000000 -0400 +++ SlackBuild.s390x 2006-01-01 13:52:21.000000000 -0500 @@ -5,6 +5,8 @@ TMP=/tmp fi PKG=$TMP/package-netpipes +ARCH=${ARCH:-i486} +BUILD=1 if [ ! -d $TMP ]; then mkdir -p $TMP # location to build the source @@ -25,7 +27,7 @@ cd netpipes-4.2-export mkdir -p $PKG/usr/doc/netpipes-4.2-export cp -a COPYING README *.html $PKG/usr/doc/netpipes-4.2-export -chown root:root $PKG/usr/doc/netpipes-4.2-export/* +chown root.root $PKG/usr/doc/netpipes-4.2-export/* chmod 644 $PKG/usr/doc/netpipes-4.2-export/* make strip encapsulate faucet getpeername hose sockdown timelimit @@ -42,7 +44,7 @@ # Build the package: cd $PKG tar czvf -makepkg -l y -c n $TMP/netpipes-4.2-i386-1.tgz . +makepkg -l y -c n $TMP/netpipes-4.2-${ARCH}-${BUILD}.tgz . # Clean up the extra stuff: if [ "$1" = "--cleanup" ]; then