aboutsummaryrefslogtreecommitdiff
path: root/system/tarsnap
diff options
context:
space:
mode:
Diffstat (limited to 'system/tarsnap')
-rw-r--r--system/tarsnap/tarsnap.SlackBuild24
1 files changed, 6 insertions, 18 deletions
diff --git a/system/tarsnap/tarsnap.SlackBuild b/system/tarsnap/tarsnap.SlackBuild
index 95945027db96f..3e57856f2590d 100644
--- a/system/tarsnap/tarsnap.SlackBuild
+++ b/system/tarsnap/tarsnap.SlackBuild
@@ -20,7 +20,6 @@
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-
PRGNAM=tarsnap
VERSION=${VERSION:-1.0.37}
BUILD=${BUILD:-1}
@@ -28,7 +27,7 @@ TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -71,25 +70,14 @@ make install DESTDIR=$PKG
# We don't set ARCH. we let Colin Percival's configure do it.
ARCH=$(grep build_cpu Makefile | cut -d= -f 2 | sed s/^\ //)
-# We'll leave stuff unstripped for now, since we're dealing with a beta
-# Though very stable, any debugging information might be helpful to
-# the developer (Colin)
-#
-#( cd $PKG
-# find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-# find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
-#)
-
-( cd $PKG/usr/man || exit 1
- find . -type f -exec gzip -9 {} \;
- for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
-)
+find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
+ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a \
- COPYING \
- $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a COPYING $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install