forked from ports/contrib
32 lines
777 B
Plaintext
32 lines
777 B
Plaintext
# Description: A C++ bittorrent library.
|
|
# URL: https://www.rasterbar.com/products/libtorrent/
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
|
# Depends on: boost
|
|
|
|
name=libtorrent-rasterbar
|
|
version=1.2.10
|
|
release=2
|
|
source=(https://github.com/arvidn/libtorrent/releases/download/libtorrent-$version/$name-$version.tar.gz
|
|
libtorrent-rasterbar-cxx14-fix.patch)
|
|
|
|
build() {
|
|
cd $name-$version
|
|
|
|
# https://github.com/arvidn/libtorrent/issues/5024
|
|
patch -p1 -i $SRC/libtorrent-rasterbar-cxx14-fix.patch
|
|
|
|
export PYTHON='/usr/bin/python3'
|
|
mkdir $SRC/bin
|
|
ln -s /usr/bin/python3 $SRC/bin/python
|
|
export PATH="$SRC/bin:$PATH"
|
|
|
|
./configure \
|
|
--prefix=/usr \
|
|
--enable-python-binding \
|
|
--with-libiconv \
|
|
--with-boost-python=boost_python3
|
|
|
|
make
|
|
make DESTDIR=$PKG install
|
|
}
|