mdocml: register 'man' alternatives group.
This commit is contained in:
parent
6e9e187c76
commit
8d51f0bc87
1 changed files with 13 additions and 6 deletions
|
@ -1,13 +1,11 @@
|
||||||
# Template file for 'mdocml'
|
# Template file for 'mdocml'
|
||||||
pkgname=mdocml
|
pkgname=mdocml
|
||||||
version=1.13.3
|
version=1.13.3
|
||||||
revision=4
|
revision=6
|
||||||
build_pie=yes
|
build_pie=yes
|
||||||
build_style=configure
|
build_style=configure
|
||||||
makedepends="sqlite-devel"
|
makedepends="sqlite-devel"
|
||||||
provides="man-0_1"
|
provides="man-0_1"
|
||||||
replaces="man>=0"
|
|
||||||
conflicts="man-db>=0"
|
|
||||||
conf_files="/etc/man.conf"
|
conf_files="/etc/man.conf"
|
||||||
short_desc="The mandoc UNIX manpage compiler toolset"
|
short_desc="The mandoc UNIX manpage compiler toolset"
|
||||||
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
||||||
|
@ -16,6 +14,14 @@ homepage="http://mdocml.bsd.lv"
|
||||||
distfiles="${homepage}/snapshots/mdocml-$version.tar.gz"
|
distfiles="${homepage}/snapshots/mdocml-$version.tar.gz"
|
||||||
checksum=23ccab4800d50bf4c327979af5d4aa1a6a2dc490789cb67c4c3ac1bd40b8cad8
|
checksum=23ccab4800d50bf4c327979af5d4aa1a6a2dc490789cb67c4c3ac1bd40b8cad8
|
||||||
|
|
||||||
|
alternatives="
|
||||||
|
man:man:/usr/bin/mandoc
|
||||||
|
man:whatis:/usr/bin/mandoc
|
||||||
|
man:apropos:/usr/bin/mandoc
|
||||||
|
man:man.1:/usr/share/man/man1/mandoc-man.1
|
||||||
|
man:whatis.1:/usr/share/man/man1/mandoc-whatis.1
|
||||||
|
man:apropos.1:/usr/share/man/man1/mandoc-apropos.1"
|
||||||
|
|
||||||
pre_configure() {
|
pre_configure() {
|
||||||
sed -i 's,PREFIX=.*,PREFIX=/usr,g' configure
|
sed -i 's,PREFIX=.*,PREFIX=/usr,g' configure
|
||||||
sed -i 's,${PREFIX}/man,${PREFIX}/share/man,g' configure
|
sed -i 's,${PREFIX}/man,${PREFIX}/share/man,g' configure
|
||||||
|
@ -26,13 +32,14 @@ pre_build() {
|
||||||
sed -i "s,CFLAGS.* ,& ${CFLAGS} ,g" Makefile.local
|
sed -i "s,CFLAGS.* ,& ${CFLAGS} ,g" Makefile.local
|
||||||
}
|
}
|
||||||
post_install() {
|
post_install() {
|
||||||
|
# Rename mans for alternatives
|
||||||
|
for f in apropos man whatis; do
|
||||||
|
mv ${DESTDIR}/usr/share/man/man1/{$f,mandoc-$f}.1
|
||||||
|
done
|
||||||
# Use symlinks.
|
# Use symlinks.
|
||||||
rm -f ${DESTDIR}/usr/bin/{apropos,man,whatis}
|
rm -f ${DESTDIR}/usr/bin/{apropos,man,whatis}
|
||||||
rm -f ${DESTDIR}/usr/sbin/makewhatis
|
rm -f ${DESTDIR}/usr/sbin/makewhatis
|
||||||
ln -sfr ${DESTDIR}/usr/bin/mandoc ${DESTDIR}/usr/bin/makewhatis
|
ln -sfr ${DESTDIR}/usr/bin/mandoc ${DESTDIR}/usr/bin/makewhatis
|
||||||
for f in man apropos whatis; do
|
|
||||||
ln -s mandoc ${DESTDIR}/usr/bin/$f
|
|
||||||
done
|
|
||||||
# man(1) configuration file
|
# man(1) configuration file
|
||||||
vconf ${FILESDIR}/man.conf
|
vconf ${FILESDIR}/man.conf
|
||||||
# remove devel stuff.
|
# remove devel stuff.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue