wok-6.x view lcov/receipt @ rev 24491
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Feb 18 22:59:06 2022 +0000 (2022-02-18) |
parents | 3f766b079e67 |
children | cbdedb979b58 |
line source
1 # SliTaz package receipt.
3 PACKAGE="lcov"
4 VERSION="1.14"
5 CATEGORY="development"
6 SHORT_DESC="LTP GCOV extension code coverage tool."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPLv2+"
9 WEB_SITE="https://github.com/linux-test-project/lcov"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$WEB_SITE/archive/v$VERSION.tar.gz"
14 SUGGESTED="gcc"
15 DEPENDS="perl"
17 current_version()
18 {
19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
20 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 make PREFIX=/usr CFG_DIR=/etc DESTDIR=$DESTDIR install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr
34 cp -a $install/usr/bin $fs/usr
35 cp -a $install/etc $fs
36 }