wok annotate mdocml/receipt @ rev 24851
updated libxdg-basedir and libxdg-basedir-dev (1.2.0 -> 1.2.3)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Mar 26 10:49:19 2022 +0100 (2022-03-26) |
parents | e0a322a2f200 |
children | 73f36875e5a7 |
rev | line source |
---|---|
al@13688 | 1 # SliTaz package receipt. |
al@13688 | 2 |
al@13688 | 3 PACKAGE="mdocml" |
al@13688 | 4 VERSION="1.12.1" |
al@13688 | 5 CATEGORY="base-system" |
al@13688 | 6 SHORT_DESC="UNIX manpage compiler" |
al@13688 | 7 MAINTAINER="al.bobylev@gmail.com" |
pascal@15601 | 8 LICENSE="ISC" |
al@13688 | 9 WEB_SITE="http://mdocml.bsd.lv/" |
al@13688 | 10 TARBALL="$PACKAGE-$VERSION.tar.gz" |
al@13688 | 11 WGET_URL="http://mdocml.bsd.lv/snapshots/$TARBALL" |
al@13688 | 12 |
al@13688 | 13 DEPENDS="glibc-base" |
al@13688 | 14 BUILD_DEPENDS="db-dev" |
al@13688 | 15 |
pascal@24453 | 16 # What is the latest version available today? |
pascal@24453 | 17 current_version() |
pascal@24453 | 18 { |
pascal@24453 | 19 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \ |
pascal@24453 | 20 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q |
pascal@24453 | 21 } |
pascal@24453 | 22 |
al@13688 | 23 # Rules to configure and make the package. |
al@13688 | 24 compile_rules() |
al@13688 | 25 { |
pascal@18949 | 26 export LDFLAGS="$LDFLAGS -lpthread" |
al@13688 | 27 # configure |
al@13688 | 28 sed -i '/^#.*CFLAGS.*/ s/# //; s/OpenBSD 4\.5/SliTaz Cooking/; \ |
al@13688 | 29 s/^STATIC.*/#\0/; \ |
al@13688 | 30 s/^PREFIX.*/PREFIX = \/usr/; |
al@13688 | 31 s/^MANDIR.*/MANDIR = $(PREFIX)\/share\/man/; |
al@13688 | 32 s/^#\(DBLIB.*\)/\1/' \ |
al@13688 | 33 Makefile |
al@13688 | 34 make clean && |
al@13688 | 35 make && |
al@13688 | 36 make DESTDIR=$install install && |
al@13688 | 37 make DESTDIR=$install installcgi && |
al@13688 | 38 install -m 0755 apropos catman mandocdb whatis $install/usr/bin |
al@13688 | 39 } |
al@13688 | 40 |
al@13688 | 41 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@13688 | 42 genpkg_rules() |
al@13688 | 43 { |
al@13688 | 44 mkdir -p $fs/usr/bin |
al@13688 | 45 cp -a $install/usr/bin/mandoc $fs/usr/bin |
al@13688 | 46 } |