wok view tcplay/receipt @ rev 24055

Add current_version for most github hosted softwares
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jun 08 08:46:05 2021 +0000 (2021-06-08)
parents 8af51fadeab7
children ac8ca9758df1
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*}/releases 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 }