wok-next view libtorrent/receipt @ rev 20711

Up libtorrent (0.13.6), rtorrent (0.9.6)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sun May 27 04:52:59 2018 +0300 (2018-05-27)
parents 5841522533ec
children 7479c35e3b23
line source
1 # SliTaz package receipt v2.
3 PACKAGE="libtorrent"
4 VERSION="0.13.6"
5 CATEGORY="network"
6 SHORT_DESC="Torrent library for rtorrent"
7 MAINTAINER="mimas@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://rakshasa.github.io/rtorrent/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/rakshasa/libtorrent/archive/$VERSION.tar.gz"
14 PATCH_FILE="libtorrent-openssl-1.1.patch"
15 PATCH_URL="https://github.com/rakshasa/libtorrent/commit/4607bbf7.patch"
17 BUILD_DEPENDS="automake libtool zlib-dev openssl-dev"
18 SPLIT="libtorrent-dev"
20 compile_rules() {
21 [ -e $SRC/$PATCH_FILE ] || wget -O $SRC/$PATCH_FILE $PATCH_URL
22 patch -p1 -i $SRC/$PATCH_FILE
24 sed -i '/AM_PATH_CPPUNIT/d' configure.ac
25 ./autogen.sh
26 export CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
28 ./configure \
29 --disable-debug \
30 $CONFIGURE_ARGS &&
31 fix libtool &&
32 make &&
33 make install
34 }
36 genpkg_rules() {
37 case $PACKAGE in
38 libtorrent)
39 copy @std
40 DEPENDS="openssl zlib"
41 ;;
42 *-dev)
43 copy @dev
44 ;;
45 esac
46 }