contrib/libtorrent-rasterbar/Pkgfile

33 lines
806 B
Plaintext
Raw Normal View History

2015-12-22 12:50:50 +01:00
# Description: A C++ bittorrent library.
2020-06-01 17:45:48 +02:00
# URL: https://www.rasterbar.com/products/libtorrent/
2018-02-21 12:28:28 +01:00
# Maintainer: Danny Rawlins, crux at romster dot me
# Depends on: boost
2011-04-10 15:27:43 +02:00
name=libtorrent-rasterbar
2020-12-29 12:41:14 +01:00
version=1.2.11
release=1
source=(https://github.com/arvidn/libtorrent/releases/download/v$version/$name-$version.tar.gz
libtorrent-rasterbar-cxx14-fix.patch
really-disable-debug-flags.patch)
2015-12-22 12:50:50 +01:00
2011-04-10 15:27:43 +02:00
build() {
cd $name-$version
2020-11-20 11:52:44 +01:00
# https://github.com/arvidn/libtorrent/issues/5024
patch -p1 -i $SRC/libtorrent-rasterbar-cxx14-fix.patch
2020-12-29 12:41:14 +01:00
patch -p1 -i $SRC/really-disable-debug-flags.patch
autoreconf -fi
2020-11-20 11:52:44 +01:00
2020-12-29 12:41:14 +01:00
PYTHON='/usr/bin/python3' \
2011-04-10 15:27:43 +02:00
./configure \
--prefix=/usr \
2020-11-20 11:52:44 +01:00
--enable-python-binding \
--with-libiconv \
2020-12-29 12:41:14 +01:00
--enable-python-binding \
2020-11-20 11:52:44 +01:00
--with-boost-python=boost_python3
2011-04-10 15:27:43 +02:00
make
make DESTDIR=$PKG install
}