aboutsummaryrefslogtreecommitdiff
path: root/network
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2020-01-11 09:08:51 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-01-12 08:47:47 +0700
commit20c287722205bdf0d2a6e4e3483ff3096e21778b (patch)
treeac78614cbfa0c31e343662b88a8e843c0102b205 /network
parentdb18051986ccd787fe75527155154c6e60cd5c08 (diff)
network/surfraw: Fix broken manpage symlinks.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'network')
-rw-r--r--network/surfraw/surfraw.SlackBuild10
1 files changed, 7 insertions, 3 deletions
diff --git a/network/surfraw/surfraw.SlackBuild b/network/surfraw/surfraw.SlackBuild
index 37eb88548de4d..155818de262c3 100644
--- a/network/surfraw/surfraw.SlackBuild
+++ b/network/surfraw/surfraw.SlackBuild
@@ -22,9 +22,11 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20200111 bkw: Modified by SlackBuilds.org (to fix broken man symlinks)
+
PRGNAM=surfraw
VERSION=${VERSION:-2.3.0}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
ARCH=noarch
@@ -65,8 +67,10 @@ make install DESTDIR=$PKG
mv $PKG/etc/xdg/surfraw/conf $PKG/etc/xdg/surfraw/conf.new
mv $PKG/etc/xdg/surfraw/bookmarks $PKG/etc/xdg/surfraw/bookmarks.new
-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
+# 20200111 bkw: upstream installs over 100 broken symlinks in the man dir,
+# which point to nonexistent gzipped man pages. Turns out, if we gzip the
+# ones that *aren't* symlinks, all is well.
+find -L $PKG/usr/man -type f -exec gzip -9 {} +
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \