SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "cryptopp"

# SliTaz package receipt.

PACKAGE="cryptopp"
VERSION="8.6.0"
CATEGORY="security"
SHORT_DESC="C++ class library of cryptographic schemes."
MAINTAINER="pankso@slitaz.org"
LICENSE="MIT PublicDomain"
WEB_SITE="https://github.com/weidai11/cryptopp"

TARBALL="${PACKAGE}${VERSION//./}.zip"
WGET_URL="$WEB_SITE/releases/download/CRYPTOPP_${VERSION//./_}/$TARBALL"

# What is the latest version available today?
current_version()
{
    wget -O - $WEB_SITE/releases 2>/dev/null | \
    sed '/tag\//!d;s|.*CRYPTOPP_||;s|".*||;s|_|.|g;q'
}

# Rules to configure and make the package.
compile_rules()
{
    sed -i 's|uname -m|echo i486|' GNUmakefile
    make PREFIX=/usr &&
    make libcryptopp.so PREFIX=/usr &&
    make libcryptopp.pc PREFIX=/usr &&
    make install PREFIX=/usr
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/share/doc/$PACKAGE

    cp -a $install/usr/lib        $fs/usr
    cp -a $install/usr/include    $fs/usr
    cp $src/License.txt        $fs/usr/share/doc/$PACKAGE
    cp $src/Readme.txt        $fs/usr/share/doc/$PACKAGE
}
6011 packages and 861692 files in cooking database (Sun Apr 20 00:48:06 2025)