wok-current view gengetopt/receipt @ rev 25024
Update some wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed May 18 20:10:17 2022 +0000 (2022-05-18) |
parents | dd8bca24b693 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="gengetopt"
4 VERSION="2.23"
5 CATEGORY="development"
6 SHORT_DESC="A tool to write command line option parsing code for C programs"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL3"
9 TARBALL="$PACKAGE-$VERSION.tar.xz"
10 WEB_SITE="http://www.gnu.org/software/gengetopt/gengetopt.html"
11 WGET_URL="https://ftp.gnu.org/gnu/gengetopt/gengetopt-$VERSION.tar.xz"
13 DEPENDS="gcc-lib-base"
14 BUILD_DEPENDS="flex texinfo"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
20 sed '/gengetopt-/!d;s|.*gengetopt-||;s|.t.*||' | sort -Vr | sed q
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 ./configure --prefix=/usr \
27 $CONFIGURE_ARGS &&
28 make &&
29 make DESTDIR=$DESTDIR install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 cp -a $install/* $fs/
36 }