wok-6.x annotate beecrypt/receipt @ rev 24340

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jan 31 11:41:46 2022 +0000 (2022-01-31)
parents 8d6f480bf664
children 7dd01dedad38
rev   line source
erjo@1433 1 # SliTaz package receipt.
erjo@1433 2
erjo@1433 3 PACKAGE="beecrypt"
slaxemulator@6518 4 VERSION="4.2.1"
erjo@1433 5 CATEGORY="system-tools"
erjo@1433 6 SHORT_DESC="Cryptography Library"
erjo@1433 7 MAINTAINER="erjo@slitaz.org"
pascal@15482 8 LICENSE="GPL2 LGPL2.1"
erjo@1433 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
erjo@1433 10 WEB_SITE="http://beecrypt.sourceforge.net/"
pascal@1516 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
jozee@3567 12 TAGS="cryptography toolkit"
erjo@1433 13
pascal@15482 14 DEPENDS="gcc-lib-base"
pascal@15482 15 BUILD_DEPENDS="python-dev"
pascal@15482 16
pascal@24340 17 # What is the latest version available today?
pascal@24340 18 current_version()
pascal@24340 19 {
pascal@24340 20 wget -O - https://sourceforge.net/projects/beecrypt/files/beecrypt/ 2>/dev/null | \
pascal@24340 21 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24340 22 sed '/scope="row/!d;s|.*/beecrypt/||;s|/.*||;q'
pascal@24340 23 }
pascal@24340 24
erjo@1433 25 # Rules to configure and make the package.
erjo@1433 26 compile_rules()
erjo@1433 27 {
erjo@1433 28 cd $src
pascal@1519 29 ./configure --prefix=/usr --without-cplusplus $CONFIGURE_ARGS &&
pascal@1516 30 make &&
pascal@15482 31 make DESTDIR=$DESTDIR install
erjo@1433 32 }
erjo@1433 33
erjo@1433 34 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@1433 35 genpkg_rules()
erjo@1433 36 {
erjo@1433 37 mkdir -p $fs/usr/lib
pascal@15482 38 cp -a $install/usr/lib $fs/usr
erjo@1433 39 # Deleting unnecessary file
erjo@1433 40 find $fs/ -name "*.*a" -exec rm -f {} \;
erjo@1433 41 }
erjo@1433 42