# SliTaz package receipt. PACKAGE="secure-delete" VERSION="3.1" CATEGORY="misc" SHORT_DESC="Secure file, disk, swap, memory erasure utilities." MAINTAINER="slaxemulator@gmail.com" LICENSE="MIT" SOURCE="secure_delete" TARBALL="$SOURCE-$VERSION.tar.gz" WEB_SITE="https://www.thc.org/" WGET_URL="http://deb.debian.org/debian/pool/main/s/$PACKAGE/${PACKAGE}_$VERSION.orig.tar.gz" DEPENDS="glibc-base" # What is the latest version available today? current_version() { wget -O - https://github.com/cryptisk-grs/thc-secure-delete/tags 2>/dev/null | \ sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' } # Rules to configure and make the package. compile_rules() { cd $src chmod u+w . sed -ie 's/mktemp/mkstemp/g' sfill.c sed -ie "s/sswap smem sdel-mod.o/sswap smem/" Makefile make -j1 && make -j1 && make -j1 INSTALL_DIR=$DESTDIR/usr/bin install chmod a+r $DESTDIR/usr/bin/* } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr cp -a $install/usr/bin $fs/usr }