wok annotate bcrypt/receipt @ rev 25476

Up foomatic-db-nonfree (20221012)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Oct 13 16:28:13 2022 +0000 (2022-10-13)
parents 7dd01dedad38
children 6b33f9da53d4
rev   line source
erjo@4383 1 # SliTaz package receipt.
erjo@4383 2
erjo@4383 3 PACKAGE="bcrypt"
erjo@4383 4 VERSION="1.1"
erjo@4383 5 CATEGORY="security"
erjo@4383 6 SHORT_DESC="File encryption utility"
erjo@4383 7 MAINTAINER="erjo@slitaz.org"
pascal@15579 8 LICENSE="BSD"
pascal@25460 9 WEB_SITE="https://bcrypt.sourceforge.net/"
erjo@4383 10 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@25476 11 WGET_URL="https://bcrypt.sourceforge.net/${TARBALL}"
jozee@4932 12 TAGS="encrypt"
erjo@4383 13
pascal@15579 14 DEPENDS="zlib"
pascal@15579 15 BUILD_DEPENDS="zlib-dev"
pascal@15579 16
pascal@24353 17 # What is the latest version available today?
pascal@24353 18 current_version()
pascal@24353 19 {
pascal@24353 20 wget -O - https://sourceforge.net/projects/bcrypt/files/bcrypt/ 2>/dev/null | \
pascal@24353 21 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24353 22 sed '/scope="row/!d;s|.*/bcrypt/||;s|/.*||;q'
pascal@24353 23 }
pascal@24353 24
erjo@4383 25 # Rules to configure and make the package.
erjo@4383 26 compile_rules()
erjo@4383 27 {
gokhlayeh@8615 28 make
al@19275 29
al@19279 30 cook_pick_manpages bcrypt.1
erjo@4383 31 }
erjo@4383 32
erjo@4383 33 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@4383 34 genpkg_rules()
erjo@4383 35 {
erjo@4383 36 mkdir -p $fs/usr/bin
erjo@4383 37 cp -a $src/bcrypt $fs/usr/bin
erjo@4383 38 }