summaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2022-04-13 11:25:19 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-04-16 12:11:24 +0700
commit06600687404b66b1f9a3989a819c24e5d19ac54a (patch)
treecc1184182c5c4a48c387408304e15ce35c59b309 /system
parent4f35b10a9d13316e43e77a99d44b0bbe1ad1ee10 (diff)
downloadslackbuilds-06600687404b66b1f9a3989a819c24e5d19ac54a.tar.gz
system/ddrescueview: Fix man page path.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system')
-rw-r--r--system/ddrescueview/ddrescueview.SlackBuild20
1 files changed, 9 insertions, 11 deletions
diff --git a/system/ddrescueview/ddrescueview.SlackBuild b/system/ddrescueview/ddrescueview.SlackBuild
index 5cfcb7d7e8..580e615b67 100644
--- a/system/ddrescueview/ddrescueview.SlackBuild
+++ b/system/ddrescueview/ddrescueview.SlackBuild
@@ -21,6 +21,10 @@
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+# 20220413 bkw: Modified by SlackBuilds.org, BUILD=2:
+# - install man page in /usr/man/man1, not /usr/man/man/man1 (ugh).
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=ddrescueview
@@ -71,15 +75,15 @@ cd $PRGNAM-source-$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 {} \+
# Build ddrescueview
lazbuild "source/ddrescueview.lpi" --lazarusdir=/usr/share/lazarus
# Install ddrescueview manually since the build system doesn't support targets
-install -D -m 755 source/ddrescueview $PKG/usr/bin/ddrescueview
+install -s -D -m 755 source/ddrescueview $PKG/usr/bin/ddrescueview
# Move over desktop files
mkdir -p $PKG/usr/share
@@ -87,14 +91,8 @@ cp -r resources/linux/icons $PKG/usr/share/
install -D -m 644 resources/linux/applications/ddrescueview.desktop $PKG/usr/share/applications/ddrescueview.desktop
# Move over manpage
-mkdir -p $PKG/usr/man/
-cp -r resources/linux/man $PKG/usr/man/
-
-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
-
-find $PKG/usr/man -type f -exec gzip -9 {} \;
-for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink ).gz $i.gz ; rm $i ; done
+mkdir -p $PKG/usr/man/man1
+gzip -9c < resources/linux/man/man1/$PRGNAM.1 > $PKG/usr/man/man1/$PRGNAM.1.gz
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \