diff options
author | Philip Lacroix <slackph at posteo dot de> | 2015-11-07 10:16:09 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2015-11-07 10:16:09 +0700 |
commit | 43b424f08c4607c42c71a88e8c49d693ae3e3100 (patch) | |
tree | f1e7e3ce34895441c7e20012021790fd3d970e91 /system/xar/xar.SlackBuild | |
parent | 46d61a73d9e8f4e36e91332118639eff3b001c96 (diff) |
system/xar: Updated for version 1.6.1 + New maintainer.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/xar/xar.SlackBuild')
-rw-r--r-- | system/xar/xar.SlackBuild | 42 |
1 files changed, 22 insertions, 20 deletions
diff --git a/system/xar/xar.SlackBuild b/system/xar/xar.SlackBuild index 29610100d48e2..805f2e915eb56 100644 --- a/system/xar/xar.SlackBuild +++ b/system/xar/xar.SlackBuild @@ -1,8 +1,10 @@ #!/bin/sh -# Slackware build script for xar. +# Slackware build script for xar + +# Copyright 2010-2011 Marco Bonetti <sid77 at slackware dot it> +# Copyright 2015 Philip Lacroix <slackph at posteo dot de> # -# Copyright 2010-2011 Marco Bonetti <sid77@slackware.it> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,7 +25,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=xar -VERSION=${VERSION:-1.5.2} +VERSION=${VERSION:-1.6.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -61,40 +63,40 @@ mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION.tar.gz -cd $PRGNAM-$VERSION +cd $PRGNAM-$VERSION chown -R root:root . find -L . \ - \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \ - -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ - -exec chmod 644 {} \; + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ - --libdir=/usr/lib${LIBDIRSUFFIX} \ - --sysconfdir=/etc \ - --localstatedir=/var \ --mandir=/usr/man \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ --disable-static \ --build=$ARCH-slackware-linux make make install DESTDIR=$PKG -find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ - | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true +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 + +PRGMAN=$PKG/usr/man/man1 +PRGDOC=$PKG/usr/doc/$PRGNAM-$VERSION -( cd $PKG/usr/man - find . -type f -exec gzip -9 {} \; - for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done -) +# Compress man page. +gzip -9 $PRGMAN/$PRGNAM.1 -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a LICENSE $PKG/usr/doc/$PRGNAM-$VERSION -cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +# Install documentation. +mkdir -p $PRGDOC +cp -a ChangeLog INSTALL LICENSE NEWS $PRGDOC +cat $CWD/$PRGNAM.SlackBuild > $PRGDOC/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc |