summaryrefslogtreecommitdiff
path: root/system/autoarchive/autoarchive.SlackBuild
diff options
context:
space:
mode:
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