diff options
author | LukenShiro <lukenshiro@ngi.it> | 2013-10-28 21:16:00 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2013-10-28 21:16:00 -0500 |
commit | 91e9305493c99431d31160eaebcd229be6ad1607 (patch) | |
tree | a8eca2ed1d43a58e8a76cd47dbfe1358c6a4a9d5 /office/htmldoc/htmldoc.SlackBuild | |
parent | 866de371dd82d60cf7159dcea820232b15380472 (diff) | |
download | slackbuilds-91e9305493c99431d31160eaebcd229be6ad1607.tar.gz |
office/htmldoc: homepage and other miscellaneous fixups
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'office/htmldoc/htmldoc.SlackBuild')
-rw-r--r-- | office/htmldoc/htmldoc.SlackBuild | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/office/htmldoc/htmldoc.SlackBuild b/office/htmldoc/htmldoc.SlackBuild index 8d8fb16161..42ba6aed6b 100644 --- a/office/htmldoc/htmldoc.SlackBuild +++ b/office/htmldoc/htmldoc.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for htmldoc -# Copyright 2009-2010 LukenShiro <lukenshiro@ngi.it> +# Copyright 2009-2013 LukenShiro, Italy # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -27,15 +27,13 @@ PRGNAM=htmldoc VERSION=1.8.27 -BUILD=${BUILD:-3} +BUILD=${BUILD:-4} TAG=${TAG:-_SBo} -# Automatically determine the architecture we're building on: if [ -z "$ARCH" ]; then case "$( uname -m )" in i?86) ARCH=i486 ;; arm*) ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: *) ARCH=$( uname -m ) ;; esac fi @@ -61,6 +59,8 @@ else LIBDIRSUFFIX="" fi +set -e + rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP @@ -68,7 +68,11 @@ rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION-source.tar.bz2 cd $PRGNAM-$VERSION chown -R root:root . -chmod -R u+w,go+r-w,a-s . +find . \ + \( -perm 777 -o -perm 775 -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 {} \; # workaround to avoid /usr/share/doc/htmldoc's use for help function sed -i 's|^#define DOCUMENTATION "$prefix/share/doc/htmldoc"|\ @@ -120,13 +124,11 @@ cp -a desktop/htmldoc-64.png $PKG/usr/share/icons/hicolor/64x64/apps/$PRGNAM.png cp -a desktop/htmldoc-96.png $PKG/usr/share/icons/hicolor/96x96/apps/$PRGNAM.png cp -a desktop/htmldoc-128.png $PKG/usr/share/icons/hicolor/128x128/apps/$PRGNAM.png -find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ +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 -( 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 -) +find $PKG/usr/man -type f -exec gzip -9 {} \; +for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done # Just in case .. mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/ |