wok view stegdetect/receipt @ rev 24497

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Feb 19 14:19:02 2022 +0000 (2022-02-19)
parents 8dd8bab3f0ca
children e1e1678c5265
line source
1 # SliTaz package receipt.
3 PACKAGE="stegdetect"
4 VERSION="0.6"
5 CATEGORY="security"
6 SHORT_DESC="steganography detection tool."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="BSD"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://github.com/abeluck/stegdetect"
11 WGET_URL="$WEB_SITE/$TARBALL"
12 TAGS="stenography"
14 # What is the latest version available today?
15 current_version()
16 {
17 wget -O - $WEB_SITE/commits/master 2>/dev/null | \
18 sed '/commits_list_item/!d;s|.*commits/\(.......\).*|\1|;q'
19 }
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 sed -i '/static int debug/d' stegdetect.c
25 ./configure --prefix=/usr \
26 $CONFIGURE_ARGS &&
27 make
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr/bin
34 cp -a $src/stegdetect $src/stegdeimage $src/stegcompare \
35 $src/stegbreak $fs/usr/bin
36 }