# SliTaz package receipt. PACKAGE="bcrypt" VERSION="1.1" CATEGORY="security" SHORT_DESC="File encryption utility" MAINTAINER="erjo@slitaz.org" LICENSE="BSD" WEB_SITE="https://bcrypt.sourceforge.net/" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="https://bcrypt.sourceforge.net/${TARBALL}" TAGS="encrypt" DEPENDS="zlib" BUILD_DEPENDS="zlib-dev" # What is the latest version available today? current_version() { wget -O - https://sourceforge.net/projects/bcrypt/files/bcrypt/ 2>/dev/null | \ sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ sed '/scope="row/!d;s|.*/bcrypt/||;s|/.*||;q' } # Rules to configure and make the package. compile_rules() { make cook_pick_manpages bcrypt.1 } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/bin cp -a $src/bcrypt $fs/usr/bin }