SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "libtorrent-rasterbar"

# SliTaz package receipt.

PACKAGE="libtorrent-rasterbar"
VERSION="1.2.5"
CATEGORY="development"
SHORT_DESC="A C++ library that aims to be a good alternative to all the other bittorrent implementations around."
MAINTAINER="slaxemulator@gmail.com"
LICENSE="BSD"
WEB_SITE="https://www.rasterbar.com/products/libtorrent/"

SOURCE="libtorrent"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="https://github.com/arvidn/$SOURCE/archive/${SOURCE}-${VERSION//./_}.tar.gz"

DEPENDS="gcc83-lib-base libboost-filesystem libboost-math libboost-python 
    libboost-thread openssl python"
BUILD_DEPENDS="autoconf automake gcc83 libboost-filesystem-dev 
    libboost-math-dev libboost-python-dev libboost-thread-dev 
    libtool openssl-dev python-dev zlib-dev"

current_version()
{
    wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
    sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
}

# Rules to configure and make the package.
compile_rules()
{
    export CC=gcc-83
    export CXX=g++-83

    ./bootstrap.sh            \
        --enable-python-binding \
        $CONFIGURE_ARGS &&
    make &&
    make install
}

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

    cp -a $install/usr/lib/*.so*    $fs/usr/lib
    cp -a $install/usr/lib/python*    $fs/usr/lib
}
6047 packages and 209931 files in current database (Mon Jul 1 15:25:36 2024)