blob: e769c8ddcdc22521e4cb2cc57afb9d87a9e6c22c (
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
|
# Maintainer: aksr <aksr at t-com dot me>
pkgname=mdocml-cvs
pkgver=2017.02.01.23.00.00
pkgrel=1
pkgdesc="A suite of tools compiling mdoc, the roff macro language for manual pages, and man."
arch=('i686' 'x86_64')
url="http://mdocml.bsd.lv/"
license=('ISC')
depends=('sqlite')
makedepends=('cvs')
provides=('mdocml' 'mandoc')
conflicts=('mdocml')
_cvsroot=":ext:anoncvs@mdocml.bsd.lv:/cvs"
_cvsmod="mdocml"
prepare() {
cd ${srcdir}
msg "Connecting to CVS server..."
export CVS_RSH=ssh
if [[ -d ${_cvsmod}/CVS ]]; then
(cd ${_cvsmod} && cvs -z3 update -d)
else
cvs -z3 -d ${_cvsroot} co -D $(echo ${pkgver} | grep -o "r.*" | sed 's/^r//;s/\./-/g') -f ${_cvsmod}
fi
msg "CVS checkout done or server timeout"
msg "Starting make..."
rm -rf ${_cvsmod}-build
cp -r ${_cvsmod} ${_cvsmod}-build
}
pkgver() {
cd ${srcdir}/${_cvsmod}-build
cat CVS/Tag | sed 's/^D//'
}
prepare() {
# adapt configuration
cat << END > ${srcdir}/${_cvsmod}-build/configure.local
PREFIX="/usr"
SBINDIR="/usr/bin"
MANDIR="/usr/share/man"
EXAMPLEDIR="/usr/share/mandoc/examples"
BINM_MAN="mman"
BINM_SOELIM="msoelim"
BINM_APROPOS="mapropos"
BINM_WHATIS="mwhatis"
MANM_MAN="mandoc_man"
MANM_MDOC="mandoc_mdoc"
MANM_ROFF="mandoc_roff"
# default cflags
$(grep -m1 'CFLAGS=' configure)
# add our cflags
CFLAGS="\${CFLAGS} $CFLAGS"
END
}
build() {
cd ${srcdir}/${_cvsmod}-build
./configure
make -j1
}
package() {
cd ${srcdir}/${_cvsmod}-build
make DESTDIR="$pkgdir" -j1 install
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/${pkgname%-*}/LICENSE
}
|