summaryrefslogtreecommitdiff
path: root/system/autoarchive/autoarchive.SlackBuild
diff options
context:
space:
mode:
authorDimitris Zlatanidis <d.zlatanidis@gmail.com>2014-04-30 13:24:56 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-04-30 13:24:56 +0700
commit99892ffa51e98f8b6d7d6154e1f46ce01dc4c1de (patch)
treefcdef7d0f9063d5eae6dd5c9596cb5cc70abfe2a /system/autoarchive/autoarchive.SlackBuild
parentafc8a23d332187e0ee41efdaeaa5a2d5258f5133 (diff)
downloadslackbuilds-99892ffa51e98f8b6d7d6154e1f46ce01dc4c1de.tar.gz
system/autoarchive: Updated for version 1.1.1.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/autoarchive/autoarchive.SlackBuild')
-rw-r--r--system/autoarchive/autoarchive.SlackBuild18
1 files changed, 9 insertions, 9 deletions
diff --git a/system/autoarchive/autoarchive.SlackBuild b/system/autoarchive/autoarchive.SlackBuild
index 0c2c17a993..e210ffabb6 100644
--- a/system/autoarchive/autoarchive.SlackBuild
+++ b/system/autoarchive/autoarchive.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=autoarchive
-VERSION=${VERSION:-1.1.0}
+VERSION=${VERSION:-1.1.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -69,24 +69,24 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-python3 setup.py install --root=$PKG
+# fix docs path
+sed -i 's/share\/doc/doc/' setup.py
+# fix man pages path
+sed -i 's/share\/man/man/g' setup.py
-mv $PKG/usr/share/man $PKG/usr
-find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \;
+python3 setup.py install --root=$PKG
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
-mv $PKG/etc/aa/aa.conf $PKG/etc/aa/aa.conf.new
+mv $PKG/etc/aa/aa.conf $PKG/etc/aa/aa.conf.new
+
+find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \;
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a README COPYING NEWS PKG-INFO $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-mv $PKG/usr/share/doc/$PRGNAM-$VERSION/examples/ $PKG/usr/doc/$PRGNAM-$VERSION
-mv $PKG/usr/share/doc/$PRGNAM-$VERSION/html/ $PKG/usr/doc/$PRGNAM-$VERSION
-rm -rf $PKG/usr/share/
-
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh