aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--system/dtach/dtach.SlackBuild14
1 files changed, 8 insertions, 6 deletions
diff --git a/system/dtach/dtach.SlackBuild b/system/dtach/dtach.SlackBuild
index abd59ca3362e..ec4c0cc8300a 100644
--- a/system/dtach/dtach.SlackBuild
+++ b/system/dtach/dtach.SlackBuild
@@ -9,12 +9,10 @@ VERSION=${VERSION:-0.8}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
-# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@@ -57,10 +55,14 @@ CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS" ./configure --prefix=/usr
make
# no 'install' target, so...
-mkdir -p $PKG/usr/{bin,doc/$PRGNAM-$VERSION,man/man1}
-cp dtach $PKG/usr/bin
-gzip -9 dtach.1 && cp dtach.1.gz $PKG/usr/man/man1
-cp [CR]* $PKG/usr/doc/$PRGNAM-$VERSION
+mkdir -p $PKG/usr/bin
+cp -a dtach $PKG/usr/bin
+
+mkdir -p $PKG/usr/man/man1
+gzip -9c dtach.1 > $PKG/usr/man/man1/dtach.1.gz
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a [CR]* $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install