abinfo "Running (fake) configure ..."
"$SRCDIR"/configure

abinfo "Building mandoc ..."
make

abinfo "Installing mandoc ..."
make install \
    DESTDIR="$PKGDIR"

abinfo "Fedora: Dropping executable bits from header files ..."
chmod -v -x \
    "$PKGDIR"/usr/include/*.h

abinfo "Dropping programs provided by man-db ..."
rm -v \
    "$PKGDIR"/usr/bin/apropos \
    "$PKGDIR"/usr/bin/makewhatis \
    "$PKGDIR"/usr/bin/man \
    "$PKGDIR"/usr/bin/soelim \
    "$PKGDIR"/usr/bin/whatis \

abinfo "Dropping man pages provided by man-db ..."
rm -v \
    "$PKGDIR"/usr/share/man/man1/{apropos,man,soelim,whatis}.1 \
    "$PKGDIR"/usr/share/man/man7/{eqn,man,roff,tbl}.7 \
    "$PKGDIR"/usr/share/man/man8/makewhatis.8
