blob: 34da7494868cd70360a09f86a16e2bf114fa11a4 (
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mdocml
_pkgname=mandoc
pkgver=1.14.2
pkgrel=1
pkgdesc="mdoc/man compiler"
url="http://mdocml.bsd.lv/"
arch="all"
license="BSD"
depends=""
makedepends="zlib-dev"
checkdepends="perl"
install="$pkgname.post-deinstall"
triggers="$pkgname-apropos.trigger=/usr/share/man/*"
subpackages="$pkgname-doc $pkgname-dev man::noarch $pkgname-apropos $pkgname-soelim"
source="http://mdocml.bsd.lv/snapshots/$_pkgname-$pkgver.tar.gz
shared-libmandoc.patch
pager.patch
man_term-fix.patch
mdocml-apropos.trigger
"
builddir="$srcdir/$_pkgname-$pkgver"
prepare() {
default_prepare
cd "$builddir"
cat >configure.local<<EOF
PREFIX=/usr
MANDIR=/usr/share/man
LIBDIR=/usr/lib
CFLAGS="$CFLAGS"
UTF8_LOCALE="en_US.UTF-8"
MANPATH_DEFAULT="/usr/share/man:/usr/local/man"
EOF
}
build() {
cd "$builddir"
./configure
make
}
check() {
cd "$builddir"
LD_LIBRARY_PATH="$builddir" make regress
}
package() {
cd "$builddir"
make -j1 DESTDIR="$pkgdir" base-install lib-install
for X in usr/bin/apropos usr/bin/whatis usr/bin/man usr/sbin/makewhatis
do
rm -f "$pkgdir/$X"
ln -s /usr/bin/mandoc "$pkgdir/$X"
done
}
man() {
pkgdesc="dummy package for upgrade compatibility. this can safely be removed"
depends="mdocml"
mkdir -p "$subpkgdir"
}
apropos() {
pkgdesc="makewhatis/whatis and apropos tools and index"
mkdir -p "$subpkgdir"/usr/sbin "$subpkgdir"/usr/bin
mv "$pkgdir"/usr/bin/apropos \
"$pkgdir"/usr/bin/whatis \
"$subpkgdir"/usr/bin/
mv "$pkgdir"/usr/sbin/makewhatis \
"$subpkgdir"/usr/sbin/
}
soelim() {
pkgdesc="so elimination tool"
depends=""
mkdir -p "$subpkgdir"/usr/bin
mv "$pkgdir"/usr/bin/soelim \
"$subpkgdir"/usr/bin/
}
sha512sums="1691e4552b0417a30a3a546cff651665f8b4b3fbe2357c734546ca29c56eef9c971a6bd88daa170f4697fb50d14048138f4bc6f5ef55aa24a7ac03903d04c868 mandoc-1.14.2.tar.gz
d127e635dfb54f9a88a28a8312f23495ec1e9356202e03ccfad1f7528f26f1cbfa7fc2c7b20c262523941d661fa7ba570a64a63c23f3e7fffc954d00bd5769c7 shared-libmandoc.patch
04947a275df99298591c2a46fb81b74c7c3fcb9f3cf8fb718cf1e32eeae5409e90a3bca89e542f8aa1b30792e837fd3d716303a636d1a3ec165fbb9529546a64 pager.patch
2d69ba396d05b2d1f0b91a3e31175f3a5bc306e334a341cd801b7b83a5cabf245a3f8228b5d7faded19e0c7d65bdfb31630613a9b780db49989599da0dbb3bfc man_term-fix.patch
704bc159acfc639e10c7d505372d303cb5784c8e9eb30084236ad89978978d4ba74f3127d4597d78594b64182c47a00c011f8bb3271d2b784f03a2a411ccb1d8 mdocml-apropos.trigger"
|