wok diff gengetopt/receipt @ rev 24605

Add zmap
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Mar 02 15:59:03 2022 +0000 (2022-03-02)
parents
children dac441f6f78d
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/gengetopt/receipt	Wed Mar 02 15:59:03 2022 +0000
     1.3 @@ -0,0 +1,36 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="gengetopt"
     1.7 +VERSION="2.23"
     1.8 +CATEGORY="development"
     1.9 +SHORT_DESC="A tool to write command line option parsing code for C programs"
    1.10 +MAINTAINER="pascal.bellard@slitaz.org"
    1.11 +LICENSE="GPL3"
    1.12 +TARBALL="$PACKAGE-$VERSION.tar.xz"
    1.13 +WEB_SITE="http://www.gnu.org/software/gengetopt/gengetopt.html"
    1.14 +WGET_URL="https://ftp.gnu.org/gnu/gengetopt/gengetopt-$VERSION.tar.xz"
    1.15 +
    1.16 +DEPENDS="gcc-lib-base"
    1.17 +BUILD_DEPENDS="flex"
    1.18 +
    1.19 +# What is the latest version available today?
    1.20 +current_version()
    1.21 +{
    1.22 +	wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
    1.23 +	sed '/gengetopt-/!d;s|.*gengetopt-||;s|.t.*||' | sort -Vr | sed q
    1.24 +}
    1.25 +
    1.26 +# Rules to configure and make the package.
    1.27 +compile_rules()
    1.28 +{
    1.29 +	./configure --prefix=/usr \
    1.30 +		$CONFIGURE_ARGS &&
    1.31 +	make &&
    1.32 +	make DESTDIR=$DESTDIR install
    1.33 +}
    1.34 +
    1.35 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.36 +genpkg_rules()
    1.37 +{
    1.38 +	cp -a $install/* $fs/
    1.39 +}