wok view cryptopp/receipt @ rev 25690

mmv: inserted current_version()
author Hans-G?nter Theisgen
date Mon Apr 15 15:20:24 2024 +0100 (7 months ago)
parents ad8b9ff412d2
children 274c0ec61c53
line source
1 # SliTaz package receipt.
3 PACKAGE="cryptopp"
4 VERSION="8.6.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 libcryptopp.so PREFIX=/usr &&
27 make libcryptopp.pc PREFIX=/usr &&
28 make install PREFIX=/usr
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/share/doc/$PACKAGE
36 cp -a $install/usr/lib $fs/usr
37 cp -a $install/usr/include $fs/usr
38 cp $src/License.txt $fs/usr/share/doc/$PACKAGE
39 cp $src/Readme.txt $fs/usr/share/doc/$PACKAGE
40 }