void-packages/srcpkgs/mdocml/template

37 lines
1.1 KiB
Text
Raw Normal View History

# Template file for 'mdocml'
pkgname=mdocml
version=1.13.2
revision=5
build_style=configure
2014-08-11 05:38:19 +00:00
makedepends="sqlite-devel"
replaces="groff>=0 man-db>=0"
2014-11-22 07:15:22 +00:00
short_desc="The mandoc UNIX manpage compiler toolset"
maintainer="Juan RP <xtraeme@gmail.com>"
2011-10-21 16:00:23 +00:00
license="ISC"
2012-11-23 16:25:46 +00:00
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
}
2014-12-14 19:33:34 +00:00
pre_build() {
2014-12-14 19:34:29 +00:00
sed -i "s,CFLAGS.* ,& ${CFLAGS} ,g" Makefile.local
2014-12-14 19:33:34 +00:00
}
post_install() {
# Use symlinks.
rm -f ${DESTDIR}/usr/bin/{apropos,man,whatis}
rm -f ${DESTDIR}/usr/sbin/makewhatis
rm -f ${DESTDIR}/usr/share/man/man1/man.1
ln -sfr ${DESTDIR}/usr/bin/mandoc ${DESTDIR}/usr/sbin/makewhatis
for f in apropos whatis; do
ln -s mandoc ${DESTDIR}/usr/bin/$f
done
2012-11-23 16:25:46 +00:00
# remove devel stuff.
2011-10-21 16:00:23 +00:00
rm -rf ${DESTDIR}/usr/{include,lib}
# Daily cron job to generate man db
vinstall ${FILESDIR}/makewhatis.cron.daily 755 etc/cron.daily makewhatis
}