2015-12-22 22:50:50 +11:00
|
|
|
# Description: A C++ bittorrent library.
|
2020-06-01 15:45:48 +00:00
|
|
|
# URL: https://www.rasterbar.com/products/libtorrent/
|
2023-08-13 10:46:53 +02:00
|
|
|
# Maintainer: unmaintained
|
2022-08-20 19:29:40 +02:00
|
|
|
# Depends on: boost python3-setuptools
|
2011-04-10 23:27:43 +10:00
|
|
|
|
|
|
|
name=libtorrent-rasterbar
|
2023-05-22 22:18:31 +02:00
|
|
|
version=2.0.9
|
2020-12-29 22:41:14 +11:00
|
|
|
release=1
|
2022-11-13 11:28:39 +00:00
|
|
|
source=(https://github.com/arvidn/libtorrent/releases/download/v$version/$name-$version.tar.gz)
|
2015-12-22 22:50:50 +11:00
|
|
|
|
2011-04-10 23:27:43 +10:00
|
|
|
build() {
|
2022-11-13 11:28:39 +00:00
|
|
|
cmake -S $name-$version -B build -G Ninja \
|
|
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-D CMAKE_INSTALL_LIBDIR=lib \
|
|
|
|
-D CMAKE_BUILD_TYPE=Release \
|
|
|
|
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
|
|
|
|
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
|
|
|
|
-D python-bindings=ON \
|
|
|
|
-D boost-python-module-name="python" \
|
|
|
|
-D python-egg-info=ON \
|
|
|
|
-Wno-dev
|
2011-04-10 23:27:43 +10:00
|
|
|
|
2022-11-13 11:28:39 +00:00
|
|
|
cmake --build build
|
|
|
|
DESTDIR=$PKG cmake --install build
|
2011-04-10 23:27:43 +10:00
|
|
|
}
|