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://www.cryptopp.com"

TARBALL="${PACKAGE}${VERSION//./}.zip"
WGET_URL="$WEB_SITE/$TARBALL"

# What is the latest version available today?
current_version()
{
    wget -O - ${WGET_URL%/*} 2>/dev/null | \
    sed '/cryptopp[0-9]*.zip/!d;s|.*cryptopp\(.*\).zip.*|\1|;s|.|&.|g;s|.$||' | sort -Vr | sed 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
}
6047 packages and 209931 files in current database (Wed Jun 26 15:35:30 2024)