wok-current view mdocml/receipt @ rev 25685

Add checkspace / fetchall feature for tazpkg
author Stanislas Leduc <shann@slitaz.org>
date Thu Mar 14 20:28:39 2024 +0000 (8 months ago)
parents 241fb98cab1c
children
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="https://mdocml.bsd.lv/"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WGET_URL="https://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 }