wok view mfoc/receipt @ rev 24308

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jan 17 18:18:17 2022 +0000 (2022-01-17)
parents 46fc8daa3b41
children 9b180a3071fb
line source
1 # SliTaz package receipt.
3 PACKAGE="mfoc"
4 VERSION="0.10.7"
5 CATEGORY="development"
6 SHORT_DESC="Mifare Classic Offline Cracker."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="https://github.com/nfc-tools/mfoc"
11 WGET_URL="http://mfoc.googlecode.com/files/$TARBALL"
13 DEPENDS="libnfc"
14 BUILD_DEPENDS="pkg-config libnfc-dev"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - $WEB_SITE/tags 2>/dev/null | \
20 sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;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 mkdir -p $fs/usr
36 cp -a $install/usr/bin $fs/usr
37 }