summaryrefslogtreecommitdiff
path: root/libtorrent-rasterbar/Pkgfile
blob: 91645825540d62282f28ea96f93292d77bd657fd (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 python3-setuptools
    5 
    6 name=libtorrent-rasterbar
    7 version=2.0.8
    8 release=1
    9 source=(https://github.com/arvidn/libtorrent/releases/download/v$version/$name-$version.tar.gz)
   10 
   11 build() {
   12   cmake -S $name-$version -B build -G Ninja \
   13     -D CMAKE_INSTALL_PREFIX=/usr \
   14     -D CMAKE_INSTALL_LIBDIR=lib \
   15     -D CMAKE_BUILD_TYPE=Release \
   16     -D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
   17     -D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
   18     -D python-bindings=ON \
   19     -D boost-python-module-name="python" \
   20     -D python-egg-info=ON \
   21     -Wno-dev
   22 
   23   cmake --build build
   24   DESTDIR=$PKG cmake --install build
   25 }

Generated by cgit