# This is an example PKGBUILD file. Use this as a start to creating your own, # and remove these comments. For more information, see 'man PKGBUILD'. # NOTE: Please fill out the license field for your package! If it is unknown, # then please put 'unknown'. # Maintainer: Future Linux Team pkgname=mandoc pkgver=1.14.6 pkgrel=2 pkgdesc="A suite of tools compiling mdoc from the OpenBSD project" arch=('x86_64') url="https://mdocml.bsd.lv" license=('ISC') depends=('zlib') makedepends=('less') source=(https://mandoc.bsd.lv/snapshots/${pkgname}-${pkgver}.tar.gz) sha256sums=(8bf0d570f01e70a6e124884088870cbed7537f36328d512909eb10cd53179d9c) build() { cd ${pkgname}-${pkgver} # apply CFLAGS and LDFLAGS from makepkg.conf { echo "CFLAGS=${CFLAGS@Q}" echo "LDFLAGS=${LDFLAGS@Q}" } >> configure.local ${CONFIGURE} make mandoc } package() { cd ${pkgname}-${pkgver} install -vDm755 mandoc ${pkgdir}/usr/bin/mandoc install -vDm644 mandoc.1 ${pkgdir}/usr/share/man/man1/mandoc.1 }