From 00fd5fe71cd6b57d31b2d7ca8d1fd891f25ab8d0 Mon Sep 17 00:00:00 2001 From: Willy Sudiarto Raharjo Date: Wed, 4 Jan 2017 12:19:46 +0700 Subject: system/tarsnap: Switch to i586 + cleanup. Signed-off-by: Willy Sudiarto Raharjo --- system/tarsnap/tarsnap.SlackBuild | 24 ++++++------------------ 1 file changed, 6 insertions(+), 18 deletions(-) diff --git a/system/tarsnap/tarsnap.SlackBuild b/system/tarsnap/tarsnap.SlackBuild index 95945027db..3e57856f25 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 -- cgit v1.2.3