wok view secure-delete/receipt @ rev 24545

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Feb 24 19:32:16 2022 +0000 (2022-02-24)
parents 3b4e4318134e
children d765616e1f3d
line source
1 # SliTaz package receipt.
3 PACKAGE="secure-delete"
4 VERSION="3.1"
5 CATEGORY="misc"
6 SHORT_DESC="Secure file, disk, swap, memory erasure utilities."
7 MAINTAINER="slaxemulator@gmail.com"
8 LICENSE="MIT"
9 SOURCE="secure_delete"
10 TARBALL="$SOURCE-$VERSION.tar.gz"
11 WEB_SITE="http://www.thc.org/"
12 WGET_URL="http://freeworld.thc.org/releases/$TARBALL"
14 DEPENDS="glibc-base"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - https://github.com/cryptisk-grs/thc-secure-delete/tags 2>/dev/null | \
20 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 cd $src
27 chmod u+w .
28 sed -ie 's/mktemp/mkstemp/g' sfill.c
29 sed -ie "s/sswap smem sdel-mod.o/sswap smem/" Makefile
30 make -j1 &&
31 make -j1 && make -j1 INSTALL_DIR=$DESTDIR/usr/bin install
32 chmod a+r $DESTDIR/usr/bin/*
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr
39 cp -a $install/usr/bin $fs/usr
40 }