wok-current view truecrypt/receipt @ rev 24535
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Feb 23 11:49:52 2022 +0000 (2022-02-23) |
parents | 3705d68ed8f3 |
children | 72f2704d3ae0 |
line source
1 # SliTaz package receipt.
3 PACKAGE="truecrypt"
4 VERSION="7.1a"
5 CATEGORY="security"
6 SHORT_DESC="Free open-source cross-platform disk encryption software"
7 MAINTAINER="slaxemulator@gmail.com"
8 LICENSE="other"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.truecrypt.org"
11 WGET_URL="ftp://ftp.archlinux.org/other/tc/$TARBALL"
13 DEPENDS="fuse wxWidgets28 xorg-libSM dmsetup linux-md"
14 BUILD_DEPENDS="pkcs nasm fuse-dev wxWidgets28-dev xorg-libSM-dev"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - https://sourceforge.net/projects/truecrypt/files/TrueCrypt/Other/ 2>/dev/null | \
20 sed '/source-unix.tar/!d;s|.source-unix.tar.*||;s|.*TrueCrypt-||;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 sed -i 's|uname -m|echo i486|' Makefile
27 sed -i 's/^export LFLAGS :=$/& -Wl,--copy-dt-needed-entries -ldl/' Makefile
28 export PKCS11_INC="/usr/include/pkcs"
29 cd $src
30 make
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr/bin \
37 $fs/usr/share/applications \
38 $fs/usr/share/pixmaps \
39 $fs/usr/share/licenses/$PACKAGE
40 cp -a $src/Main/$PACKAGE $fs/usr/bin
41 cp -a $stuff/$PACKAGE.desktop $fs/usr/share/applications
42 cp -a $src/Resources/Icons/TrueCrypt-48x48.xpm $fs/usr/share/pixmaps/truecrypt.xpm
44 cp -a $src/License.txt $fs/usr/share/licenses/$PACKAGE/License.txt
45 }