blob: f7fd2dc2504bf85d251f8ad0e5abca8a15f017bf (
plain)
1 # Description: A C++ bittorrent library.
2 # URL: https://www.rasterbar.com/products/libtorrent/
3 # Maintainer: Danny Rawlins, crux at romster dot me
4 # Depends on: boost
5
6 name=libtorrent-rasterbar
7 version=1.2.11
8 release=1
9 source=(https://github.com/arvidn/libtorrent/releases/download/v$version/$name-$version.tar.gz
10 libtorrent-rasterbar-cxx14-fix.patch
11 really-disable-debug-flags.patch)
12
13 build() {
14 cd $name-$version
15
16 # https://github.com/arvidn/libtorrent/issues/5024
17 patch -p1 -i $SRC/libtorrent-rasterbar-cxx14-fix.patch
18
19 patch -p1 -i $SRC/really-disable-debug-flags.patch
20 autoreconf -fi
21
22 PYTHON='/usr/bin/python3' \
23 ./configure \
24 --prefix=/usr \
25 --enable-python-binding \
26 --with-libiconv \
27 --enable-python-binding \
28 --with-boost-python=boost_python3
29
30 make
31 make DESTDIR=$PKG install
32 }
|