summaryrefslogtreecommitdiffstats
path: root/system/fuse-zip
diff options
context:
space:
mode:
author B. Watson2022-04-12 01:02:19 +0200
committer Willy Sudiarto Raharjo2022-04-16 07:11:20 +0200
commitd952d2d940f06ed58eb9a5773e228156a7c8f56c (patch)
tree7dfcd7e7b8ae284cdde91fed498c3cbef47bda51 /system/fuse-zip
parent08263aa7237e121fcc43ebb7fb1e40c39852a46c (diff)
downloadslackbuilds-d952d2d940f06ed58eb9a5773e228156a7c8f56c.tar.gz
system/fuse-zip: Remove /usr/share/doc.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/fuse-zip')
-rw-r--r--system/fuse-zip/fuse-zip.SlackBuild29
1 files changed, 11 insertions, 18 deletions
diff --git a/system/fuse-zip/fuse-zip.SlackBuild b/system/fuse-zip/fuse-zip.SlackBuild
index df61f15930..ffc7a51643 100644
--- a/system/fuse-zip/fuse-zip.SlackBuild
+++ b/system/fuse-zip/fuse-zip.SlackBuild
@@ -22,9 +22,13 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20220411 bkw: Modified by SlackBuilds.org, BUILD=2:
+# - get rid of /usr/share/doc.
+# - simplify build commands.
+
PRGNAM=fuse-zip
VERSION=${VERSION:-0.7.2}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -36,9 +40,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -74,26 +75,18 @@ 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 \
+ -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 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+
make prefix=/usr \
+ mandir=/usr/man \
+ docdir=/usr/doc/$PRGNAM-$VERSION \
CXXFLAGS="$SLKCFLAGS" \
DESTDIR=$PKG \
- install
-
-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/usr/share/man $PKG/usr
-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
+ install-strip
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a \
- LICENSE README.md \
- $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a LICENSE $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install