SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "pycrypto"

# SliTaz package receipt.

PACKAGE="pycrypto"
VERSION="2.6.1"
CATEGORY="development"
SHORT_DESC="Cryptographic algorithms and protocols for python."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="PublicDomain"
WEB_SITE="https://www.pycrypto.org/"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="https://ftp.dlitz.net/pub/dlitz/crypto/$PACKAGE/$TARBALL"

DEPENDS="gmp python"
BUILD_DEPENDS="gmp-dev python-dev"

# What is the latest version available today?
current_version()
{
    wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
    sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
}

# Rules to configure and make the package.
compile_rules()
{
    python setup.py build && 
    python setup.py install --root=$DESTDIR
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    cp -a $install/usr    $fs
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)