wok annotate cryptopp/receipt @ rev 24433

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Feb 12 18:42:31 2022 +0000 (2022-02-12)
parents 29af9ccd87db
children c644ecfbd345
rev   line source
pankso@4074 1 # SliTaz package receipt.
pankso@4074 2
pankso@4074 3 PACKAGE="cryptopp"
Hans-G?nter@20813 4 VERSION="8.0.0"
pankso@4074 5 CATEGORY="security"
pankso@4074 6 SHORT_DESC="C++ class library of cryptographic schemes."
erjo@5122 7 MAINTAINER="pankso@slitaz.org"
pascal@15606 8 LICENSE="MIT PublicDomain"
pascal@20671 9 WEB_SITE="https://www.cryptopp.com"
Hans-G?nter@20813 10
pascal@24433 11 TARBALL="${PACKAGE}${VERSION//./}.zip"
samuel_trassare@13679 12 WGET_URL="$WEB_SITE/$TARBALL"
pankso@4074 13
pascal@24433 14 # What is the latest version available today?
pascal@24433 15 current_version()
pascal@24433 16 {
pascal@24433 17 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24433 18 sed '/cryptopp[0-9]*.zip/!d;s|.*cryptopp\(.*\).zip.*|\1|;s|.|&.|g;s|.$||' | sort -Vr | sed q
pascal@24433 19 }
pascal@24433 20
pankso@4074 21 # Rules to configure and make the package.
pankso@4074 22 compile_rules()
pankso@4074 23 {
pascal@20212 24 sed -i 's|uname -m|echo i486|' GNUmakefile
Hans-G?nter@20813 25 make PREFIX=/usr &&
Hans-G?nter@20813 26 make PREFIX=/usr libcryptopp.so &&
pascal@23065 27 make PREFIX=/usr libcryptopp.pc &&
Hans-G?nter@20813 28 make PREFIX=/usr install
pankso@4074 29 }
pankso@4074 30
pankso@4074 31 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@4074 32 genpkg_rules()
pankso@4074 33 {
pankso@4074 34 mkdir -p $fs/usr/share/doc/$PACKAGE
samuel_trassare@13684 35 cp -a $install/usr/lib $fs/usr
samuel_trassare@13684 36 cp -a $install/usr/include $fs/usr
pankso@4074 37 cp $src/License.txt $fs/usr/share/doc/$PACKAGE
pankso@4074 38 cp $src/Readme.txt $fs/usr/share/doc/$PACKAGE
pankso@4074 39 }