wok-current view libtorrent-rasterbar/receipt @ rev 25104

Up klavaro (1.2.2)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jun 22 08:45:04 2022 +0000 (2022-06-22)
parents 44cb5d13be95
children
line source
1 # SliTaz package receipt.
3 PACKAGE="libtorrent-rasterbar"
4 VERSION="1.2.5"
5 CATEGORY="development"
6 SHORT_DESC="A C++ library that aims to be a good alternative to all the other bittorrent implementations around."
7 MAINTAINER="slaxemulator@gmail.com"
8 LICENSE="BSD"
9 WEB_SITE="https://www.rasterbar.com/products/libtorrent/"
11 SOURCE="libtorrent"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="https://github.com/arvidn/$SOURCE/archive/${SOURCE}-${VERSION//./_}.tar.gz"
15 DEPENDS="gcc83-lib-base libboost-filesystem libboost-math libboost-python
16 libboost-thread openssl python"
17 BUILD_DEPENDS="autoconf automake gcc83 libboost-filesystem-dev
18 libboost-math-dev libboost-python-dev libboost-thread-dev
19 libtool openssl-dev python-dev zlib-dev"
21 current_version()
22 {
23 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
24 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 export CC=gcc-83
31 export CXX=g++-83
33 ./bootstrap.sh \
34 --enable-python-binding \
35 $CONFIGURE_ARGS &&
36 make &&
37 make install
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/usr/lib
45 cp -a $install/usr/lib/*.so* $fs/usr/lib
46 cp -a $install/usr/lib/python* $fs/usr/lib
47 }