wok view cryptopp/receipt @ rev 25794
created recipe for exo-lang
author | Hans-G?nter Theisgen |
---|---|
date | Wed Oct 23 16:19:52 2024 +0100 (4 weeks ago) |
parents | c644ecfbd345 |
children |
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://github.com/weidai11/cryptopp"
11 TARBALL="${PACKAGE}${VERSION//./}.zip"
12 WGET_URL="$WEB_SITE/releases/download/CRYPTOPP_${VERSION//./_}/$TARBALL"
14 # What is the latest version available today?
15 current_version()
16 {
17 wget -O - $WEB_SITE/releases 2>/dev/null | \
18 sed '/tag\//!d;s|.*CRYPTOPP_||;s|".*||;s|_|.|g;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 }