wok view tcplay/receipt @ rev 24433

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Feb 12 18:42:31 2022 +0000 (2022-02-12)
parents 5ea0ce1cecc0
children
line source
1 # SliTaz package receipt.
3 PACKAGE="tcplay"
4 VERSION="3.3"
5 CATEGORY="system-tools"
6 SHORT_DESC="Free TrueCrypt implementation."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="https://github.com/bwalex/tc-play"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/bwalex/tc-play/archive/v$VERSION.tar.gz"
14 DEPENDS="libdevmapper libcrypto libgcrypt util-linux-uuid zlib udev"
15 BUILD_DEPENDS="cmake libdevmapper libdevmapper-dev libgcrypt-dev
16 openssl-dev util-linux-uuid-dev zlib-dev"
18 current_version()
19 {
20 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
21 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 make -f Makefile.classic
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/tcplay $fs/usr/bin
35 }