blob: f83184fb960c00e9be32974137b704709b756b32 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# Maintainer: Dennis Wölfing <denniswoelfing at gmx dot de>
# Contributor: Caleb Maclennan <caleb@alerque.com>
# Contributor: Eli Schwartz <eschwartz@archlinux.org>
# Contributor: Jakub Klinkovský <j.l.k@gmx.com>
# Contributor: Matheus de Alcantara <matheus.de.alcantara@gmail.com>
pkgname=mandoc-noconflict
pkgver=1.14.6
pkgrel=1
pkgdesc='A suite of tools compiling mdoc from the OpenBSD project - does not conflict with man-db'
arch=('x86_64')
url='https://mandoc.bsd.lv'
license=('ISC')
depends=('zlib')
provides=('mandoc')
conflicts=('mandoc')
source=("${url}/snapshots/mandoc-${pkgver}.tar.gz"
'configure.local'
'mandoc.service'
'mandoc.timer')
sha256sums=('8bf0d570f01e70a6e124884088870cbed7537f36328d512909eb10cd53179d9c'
'23cd0e478aa08890bb2c18ff376e9c7ec84e45693f1b5457ecf7615f9c032a18'
'2091411d5f87a3c371a5ba74b4773d1e454046446fa2cb045485979e52419bb6'
'74d6a02b97a17fffddcc0a3dc830e811348b1f6c6b84f867882c776d50f00ea4')
prepare() {
cd "${srcdir}"/mandoc-${pkgver}
cp ../configure.local .
}
build() {
cd "${srcdir}"/mandoc-${pkgver}
# apply CFLAGS and LDFLAGS from makepkg.conf
{
echo "CFLAGS=${CFLAGS@Q}"
echo "LDFLAGS=${LDFLAGS@Q}"
} >> configure.local
./configure
make
}
package() {
cd "${srcdir}"/mandoc-${pkgver}
DESTDIR="${pkgdir}" make install
install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
install -Dm644 "${srcdir}"/mandoc.timer "${pkgdir}"/usr/lib/systemd/system/mandoc.timer
install -Dm644 "${srcdir}"/mandoc.service "${pkgdir}"/usr/lib/systemd/system/mandoc.service
install -dm755 "${pkgdir}"/usr/lib/systemd/system/multi-user.target.wants
ln -s ../mandoc.timer "${pkgdir}"/usr/lib/systemd/system/multi-user.target.wants/mandoc.timer
}
|