Skip to content

Instantly share code, notes, and snippets.

@lahwaacz
Created Aug 29, 2017
Embed
What would you like to do?
Modified PKGBUILD for mandoc to install side-by-side with man-db and groff
# Arch $MANPATH.
MANPATH_DEFAULT=/usr/local/share/man:/usr/share/man
# Arch paths.
PREFIX=/usr
SBINDIR=$PREFIX/bin
MANDIR=$PREFIX/share/man
# These conflict with man(7) and mdoc(7) from man-pages.
MANM_MAN=mandoc_man
MANM_MDOC=mandoc_mdoc
# _FORTIFY_SOURCE doesn't work unless an optimisation level is specified.
CFLAGS="$CFLAGS -O2"
# from the mdocml package (to avoid conflict with man-db package)
EXAMPLEDIR="/usr/share/mandoc/examples"
BINM_MAN="mman"
BINM_SOELIM="msoelim"
BINM_APROPOS="mapropos"
BINM_WHATIS="mwhatis"
BINM_CATMAN="mcatman"
MANM_MAN="mandoc_man"
MANM_MDOC="mandoc_mdoc"
MANM_ROFF="mandoc_roff"
BUILD_CATMAN=1
# Maintainer: Erin Kinsley <ybden@ybden.com>
# Contributor: Matheus de Alcantara <matheus.de.alcantara@gmail.com>
pkgname=mandoc
pkgver=1.14.3
pkgrel=1
pkgdesc='A suite of tools compiling mdoc from the OpenBSD project'
arch=('i686' 'x86_64')
url='http://mdocml.bsd.lv/'
license=('custom: ISC')
depends=('zlib')
#provides=('man')
#conflicts=('man')
source=("http://mdocml.bsd.lv/snapshots/mandoc-$pkgver.tar.gz"
'configure.local'
'mandoc.service'
'mandoc.timer')
sha256sums=('0b0c8f67958c1569ead4b690680c337984b879dfd2ad4648d96924332fd99528'
'4066fd000988bd38f44aa9e337e9ea43b1bd54f69549f6d57d45639e8977afa4'
'2091411d5f87a3c371a5ba74b4773d1e454046446fa2cb045485979e52419bb6'
'79d4e73b6c8cab7e12d11f8b4574790938064b42effbb02afadc1548dfcf5cc4')
prepare() {
cp "$srcdir"/configure.local mandoc-$pkgver
}
build() {
cd mandoc-$pkgver
./configure
make
}
package() {
cd mandoc-$pkgver
DESTDIR="$pkgdir" make install
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment