wok annotate cryptopp/receipt @ rev 24693

updated jwm (2.3.7 -> 2.4.1)
author Hans-G?nter Theisgen
date Sun Mar 13 07:13:46 2022 +0100 (2022-03-13)
parents ad8b9ff412d2
children
rev   line source
pankso@4074 1 # SliTaz package receipt.
pankso@4074 2
pankso@4074 3 PACKAGE="cryptopp"
Hans-G?nter@24443 4 VERSION="8.6.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@24443 26 make libcryptopp.so PREFIX=/usr &&
Hans-G?nter@24443 27 make libcryptopp.pc PREFIX=/usr &&
Hans-G?nter@24443 28 make install PREFIX=/usr
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
Hans-G?nter@24443 35
Hans-G?nter@24443 36 cp -a $install/usr/lib $fs/usr
Hans-G?nter@24443 37 cp -a $install/usr/include $fs/usr
Hans-G?nter@24443 38 cp $src/License.txt $fs/usr/share/doc/$PACKAGE
Hans-G?nter@24443 39 cp $src/Readme.txt $fs/usr/share/doc/$PACKAGE
pankso@4074 40 }