contrib/libtorrent-rasterbar/Pkgfile

26 lines
728 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/
# Maintainer: unmaintained
# Depends on: boost python3-setuptools
2011-04-10 15:27:43 +02:00
name=libtorrent-rasterbar
2023-05-22 22:18:31 +02:00
version=2.0.9
2020-12-29 12:41:14 +01:00
release=1
2022-11-13 12:28:39 +01:00
source=(https://github.com/arvidn/libtorrent/releases/download/v$version/$name-$version.tar.gz)
2015-12-22 12:50:50 +01:00
2011-04-10 15:27:43 +02:00
build() {
2022-11-13 12:28:39 +01: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 15:27:43 +02:00
2022-11-13 12:28:39 +01:00
cmake --build build
DESTDIR=$PKG cmake --install build
2011-04-10 15:27:43 +02:00
}