wok view 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
line source
1 # SliTaz package receipt.
3 PACKAGE="cryptopp"
4 VERSION="8.0.0"
5 CATEGORY="security"
6 SHORT_DESC="C++ class library of cryptographic schemes."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="MIT PublicDomain"
9 WEB_SITE="https://www.cryptopp.com"
11 TARBALL="${PACKAGE}${VERSION//./}.zip"
12 WGET_URL="$WEB_SITE/$TARBALL"
14 # What is the latest version available today?
15 current_version()
16 {
17 wget -O - ${WGET_URL%/*} 2>/dev/null | \
18 sed '/cryptopp[0-9]*.zip/!d;s|.*cryptopp\(.*\).zip.*|\1|;s|.|&.|g;s|.$||' | sort -Vr | sed q
19 }
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 sed -i 's|uname -m|echo i486|' GNUmakefile
25 make PREFIX=/usr &&
26 make PREFIX=/usr libcryptopp.so &&
27 make PREFIX=/usr libcryptopp.pc &&
28 make PREFIX=/usr install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/share/doc/$PACKAGE
35 cp -a $install/usr/lib $fs/usr
36 cp -a $install/usr/include $fs/usr
37 cp $src/License.txt $fs/usr/share/doc/$PACKAGE
38 cp $src/Readme.txt $fs/usr/share/doc/$PACKAGE
39 }