2024-10-31 15:04:37 +08:00
|
|
|
# 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'.
|
2024-10-31 13:23:56 +08:00
|
|
|
|
2024-10-31 15:04:37 +08:00
|
|
|
# Maintainer: Future Linux Team <xhaa123@outlook.com>
|
2024-10-31 13:23:56 +08:00
|
|
|
pkgname=mandoc
|
|
|
|
pkgver=1.14.6
|
2024-10-31 15:04:37 +08:00
|
|
|
pkgrel=2
|
2024-10-31 13:23:56 +08:00
|
|
|
pkgdesc="A suite of tools compiling mdoc from the OpenBSD project"
|
|
|
|
arch=('x86_64')
|
|
|
|
url="https://mdocml.bsd.lv"
|
|
|
|
license=('ISC')
|
|
|
|
depends=('zlib')
|
2024-10-31 15:04:37 +08:00
|
|
|
makedepends=('less')
|
2024-10-31 13:23:56 +08:00
|
|
|
source=(https://mandoc.bsd.lv/snapshots/${pkgname}-${pkgver}.tar.gz)
|
|
|
|
sha256sums=(8bf0d570f01e70a6e124884088870cbed7537f36328d512909eb10cd53179d9c)
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd ${pkgname}-${pkgver}
|
|
|
|
|
2024-10-31 15:04:37 +08:00
|
|
|
# apply CFLAGS and LDFLAGS from makepkg.conf
|
|
|
|
{
|
|
|
|
echo "CFLAGS=${CFLAGS@Q}"
|
|
|
|
echo "LDFLAGS=${LDFLAGS@Q}"
|
|
|
|
} >> configure.local
|
|
|
|
|
2024-10-31 13:23:56 +08:00
|
|
|
${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
|
|
|
|
}
|