From b888288ffe1450103a49dd4325098819cd6388ee Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 16 Dec 2014 11:25:25 +0100 Subject: [PATCH] mdocml: install symlinks for apropos, man, whatis and makewhatis. ... otherwise the debug binaries will be created wrongly. --- srcpkgs/mdocml/template | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/srcpkgs/mdocml/template b/srcpkgs/mdocml/template index 685406f6a1..e09b0e5a44 100644 --- a/srcpkgs/mdocml/template +++ b/srcpkgs/mdocml/template @@ -1,7 +1,7 @@ # Template file for 'mdocml' pkgname=mdocml version=1.13.2 -revision=3 +revision=4 build_style=configure makedepends="sqlite-devel" provides="man-0_1" @@ -23,6 +23,13 @@ pre_build() { sed -i "s,CFLAGS.* ,& ${CFLAGS} ,g" Makefile.local } post_install() { + # Use symlinks. + rm -f ${DESTDIR}/usr/bin/{apropos,man,whatis} + rm -f ${DESTDIR}/usr/sbin/makewhatis + ln -sfr ${DESTDIR}/usr/bin/mandoc ${DESTDIR}/usr/sbin/makewhatis + for f in apropos man whatis; do + ln -sfr ${DESTDIR}/usr/bin/mandoc ${DESTDIR}/usr/bin/$f + done # remove devel stuff. rm -rf ${DESTDIR}/usr/{include,lib} # Daily cron job to generate man db