39 lines
1.2 KiB
Text
39 lines
1.2 KiB
Text
# Template file for 'mdocml'
|
|
pkgname=mdocml
|
|
version=1.13.2
|
|
revision=4
|
|
build_style=configure
|
|
makedepends="sqlite-devel"
|
|
provides="man-0_1"
|
|
replaces="openbsd-man>=0 groff>=0 man-db>=0"
|
|
conf_files="/etc/man.conf"
|
|
short_desc="The mandoc UNIX manpage compiler toolset"
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
license="ISC"
|
|
homepage="http://mdocml.bsd.lv"
|
|
distfiles="${homepage}/snapshots/mdocml-$version.tar.gz"
|
|
checksum=9074755da96e8afbf9634d7ffa29c1decda2f642e13d9d844f26cd1e06d9716b
|
|
|
|
pre_configure() {
|
|
sed -i 's,PREFIX=.*,PREFIX=/usr,g' configure
|
|
sed -i 's,${PREFIX}/man,${PREFIX}/share/man,g' configure
|
|
sed -i "s,/usr/local,${XBPS_CROSS_BASE}/usr,g" configure
|
|
}
|
|
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
|
|
vinstall ${FILESDIR}/makewhatis.cron.daily 755 etc/cron.daily makewhatis
|
|
vman ${FILESDIR}/man.conf.5
|
|
vconf ${FILESDIR}/man.conf
|
|
}
|