diff options
author | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-01-04 12:19:46 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-01-04 12:19:46 +0700 |
commit | 00fd5fe71cd6b57d31b2d7ca8d1fd891f25ab8d0 (patch) | |
tree | 3ca19a6b54949560191bcbdb772e3172985eb075 /system/tarsnap/tarsnap.SlackBuild | |
parent | 02ef3075b9ee37ede21ecbcb3dffb8e030171b96 (diff) | |
download | slackbuilds-00fd5fe71cd6b57d31b2d7ca8d1fd891f25ab8d0.tar.gz |
system/tarsnap: Switch to i586 + cleanup.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/tarsnap/tarsnap.SlackBuild')
-rw-r--r-- | system/tarsnap/tarsnap.SlackBuild | 24 |
1 files 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 |