mdocml: install symlinks for apropos, man, whatis and makewhatis.

... otherwise the debug binaries will be created wrongly.
This commit is contained in:
Juan RP 2014-12-16 11:25:25 +01:00
parent 7ca43a4456
commit b888288ffe

View file

@ -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