aboutsummaryrefslogtreecommitdiff
path: root/misc/dmg2img
diff options
context:
space:
mode:
authorEdward W. Koenig <kingbeowulf@gmail.com>2019-11-02 01:04:28 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2019-11-02 01:04:28 +0700
commit35c12ebf4ebf5bf3e4f5a4b3bddb695eb988389b (patch)
tree366de2518b9b5733e308a8a697a900aa0bfb7395 /misc/dmg2img
parent19b94cfeac59e4f54941629a75d4da2be3644e23 (diff)
misc/dmg2img: Added man page.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'misc/dmg2img')
-rw-r--r--misc/dmg2img/dmg2img.SlackBuild13
1 files changed, 10 insertions, 3 deletions
diff --git a/misc/dmg2img/dmg2img.SlackBuild b/misc/dmg2img/dmg2img.SlackBuild
index abc187293326..a64db6bc5683 100644
--- a/misc/dmg2img/dmg2img.SlackBuild
+++ b/misc/dmg2img/dmg2img.SlackBuild
@@ -77,10 +77,17 @@ make install DESTDIR=$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
+# Install man pages
+mkdir -p $PKG/usr/man/man1
+install -m 755 $CWD/dmg2img.1 $PKG/usr/man/man1/dmg2img.1
+install -m 755 vfdecrypt.1 $PKG/usr/man/man1/vfdecrypt.1
+# Compress man pages
+find $PKG/usr/man/man1 -type f -exec gzip -9 {} \;
+for i in $( find $PKG/usr/man/man1 -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a \
- COPYING README \
- $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a COPYING README \
+ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install