wok-6.x view mdocml/receipt @ rev 25245
updated python-unidecode (1.1.1 -> 1.2.0)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Jul 14 07:00:20 2022 +0100 (2022-07-14) |
parents | e0a322a2f200 |
children | 73f36875e5a7 |
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 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
20 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 export LDFLAGS="$LDFLAGS -lpthread"
27 # configure
28 sed -i '/^#.*CFLAGS.*/ s/# //; s/OpenBSD 4\.5/SliTaz Cooking/; \
29 s/^STATIC.*/#\0/; \
30 s/^PREFIX.*/PREFIX = \/usr/;
31 s/^MANDIR.*/MANDIR = $(PREFIX)\/share\/man/;
32 s/^#\(DBLIB.*\)/\1/' \
33 Makefile
34 make clean &&
35 make &&
36 make DESTDIR=$install install &&
37 make DESTDIR=$install installcgi &&
38 install -m 0755 apropos catman mandocdb whatis $install/usr/bin
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/usr/bin
45 cp -a $install/usr/bin/mandoc $fs/usr/bin
46 }