wok-6.x annotate splint/receipt @ rev 25445
itaka: fix wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Sep 06 07:38:52 2022 +0000 (2022-09-06) |
parents | ee15b6380b31 |
children |
rev | line source |
---|---|
rocky@4087 | 1 # SliTaz package receipt. |
rocky@4087 | 2 |
rocky@4087 | 3 PACKAGE="splint" |
rocky@4087 | 4 VERSION="3.1.2" |
rocky@4087 | 5 CATEGORY="development" |
rocky@4087 | 6 SHORT_DESC="A tool for statically checking C programs for security vulnerabilities and coding mistakes." |
rocky@4087 | 7 MAINTAINER="rocky@slitaz.org" |
pascal@15593 | 8 LICENSE="GPL2" |
rocky@4087 | 9 TARBALL="$PACKAGE-$VERSION.src.tgz" |
rocky@4087 | 10 WEB_SITE="http://www.splint.org/" |
rocky@4087 | 11 WGET_URL="http://www.splint.org/downloads/$TARBALL" |
rocky@4087 | 12 |
pascal@17740 | 13 BUILD_DEPENDS="flex autoconf automake libtool" |
pascal@15593 | 14 |
pascal@24462 | 15 # What is the latest version available today? |
pascal@24462 | 16 current_version() |
pascal@24462 | 17 { |
pascal@24462 | 18 wget -O - https://github.com/splintchecker/splint/tags 2>/dev/null | \ |
pascal@24462 | 19 sed '/archive.*tar/!d;/cvs/d;s|.*/[a-z-]*\(.*\).tar.*|\1|;s|_|.|g;q' |
pascal@24462 | 20 } |
pascal@24462 | 21 |
rocky@4087 | 22 # Rules to configure and make the package. |
rocky@4087 | 23 compile_rules() |
rocky@4087 | 24 { |
pascal@17740 | 25 autoreconf -i |
pascal@17740 | 26 ./configure $CONFIGURE_ARGS && make -j1 && make install |
rocky@4087 | 27 } |
rocky@4087 | 28 |
rocky@4087 | 29 # Rules to gen a SliTaz package suitable for Tazpkg. |
rocky@4087 | 30 genpkg_rules() |
rocky@4087 | 31 { |
rocky@4087 | 32 mkdir -p $fs/usr |
pascal@15593 | 33 cp -a $install/usr/bin $fs/usr |
pascal@15593 | 34 cp -a $install/usr/share $fs/usr |
rocky@4087 | 35 } |