wok view mdocml/receipt @ rev 19607
Up: sed (4.3)
author | Alexander Medvedev <devl547@gmail.com> |
---|---|
date | Wed Jan 04 17:30:06 2017 +0000 (2017-01-04) |
parents | 23c3aed67cd9 |
children | 241fb98cab1c |
line source
1 # SliTaz package receipt.
3 PACKAGE="mdocml"
4 VERSION="1.12.1"
5 CATEGORY="base-system"
6 SHORT_DESC="UNIX manpage compiler"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="ISC"
9 WEB_SITE="http://mdocml.bsd.lv/"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WGET_URL="http://mdocml.bsd.lv/snapshots/$TARBALL"
13 DEPENDS="glibc-base"
14 BUILD_DEPENDS="db-dev"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 export LDFLAGS="$LDFLAGS -lpthread"
20 # configure
21 sed -i '/^#.*CFLAGS.*/ s/# //; s/OpenBSD 4\.5/SliTaz Cooking/; \
22 s/^STATIC.*/#\0/; \
23 s/^PREFIX.*/PREFIX = \/usr/;
24 s/^MANDIR.*/MANDIR = $(PREFIX)\/share\/man/;
25 s/^#\(DBLIB.*\)/\1/' \
26 Makefile
27 make clean &&
28 make &&
29 make DESTDIR=$install install &&
30 make DESTDIR=$install installcgi &&
31 install -m 0755 apropos catman mandocdb whatis $install/usr/bin
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr/bin
38 cp -a $install/usr/bin/mandoc $fs/usr/bin
39 }