wok-next view mdocml/receipt @ rev 20959
Fix minicom
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Sep 06 11:27:41 2018 +0200 (2018-09-06) |
parents | a104655e7979 |
children |
line source
1 # SliTaz package receipt v2.
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 REPOLOGY="mandoc"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="http://mdocml.bsd.lv/snapshots/$TARBALL"
15 BUILD_DEPENDS="db-dev"
16 SPLIT="mdocml mdocml-cgi mdocml-dev mdocml-extra mdocml-man"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 export LDFLAGS="$LDFLAGS -lpthread"
22 # configure
23 sed -i '/^#.*CFLAGS.*/ s/# //; s/OpenBSD 4\.5/SliTaz Cooking/; \
24 s/^STATIC.*/#\0/; \
25 s/^PREFIX.*/PREFIX = \/usr/;
26 s/^MANDIR.*/MANDIR = $(PREFIX)\/share\/man/;
27 s/^#\(DBLIB.*\)/\1/' \
28 Makefile
29 make clean &&
30 make &&
31 make DESTDIR=$install install &&
32 make DESTDIR=$install installcgi &&
33 install -m 0755 apropos catman mandocdb whatis $install/usr/bin
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 case $PACKAGE in
40 mdocml)
41 DEPENDS="glibc-base"
42 mkdir -p $fs/usr/bin
43 cp -a $install/usr/bin/mandoc $fs/usr/bin
44 ;;
45 mdocml-cgi)
46 CAT="development|CGI files for mdocml"
47 DEPENDS="glibc-base libdb"
48 mkdir -p $fs/var
49 cp -a $install/var/www $fs/var
50 ;;
51 mdocml-dev)
52 CAT="development|Devel files for mdocml"
53 DEPENDS="mdocml"
54 mkdir -p $fs/usr
55 cp -a $install/usr/include $fs/usr
56 cp -a $install/usr/lib $fs/usr
57 ;;
58 mdocml-extra)
59 CAT="base-system|Extra files for mdocml"
60 DEPENDS="glibc-base libdb mdocml"
61 mkdir -p $fs/usr
62 cp -a $install/usr/bin $fs/usr
63 rm -f $fs/usr/bin/mandoc
64 ;;
65 mdocml-man)
66 CAT="development|Man files for mdocml"
67 DEPENDS="mdocml"
68 mkdir -p $fs/usr/share
69 cp -a $install/usr/share/man $fs/usr/share
70 ;;
71 esac
72 }