#Maintainer: Dimitris Tzemos pkgname=libtorrent-rasterbar pkgver=2.0.12 pkgrel=1dj source=("https://github.com/arvidn/libtorrent/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.gz" "010-libtorrent-rasterbar-fix-for-fortify-source-3.patch") docs=("AUTHORS" "COPYING" "ChangeLog" "INSTALL" "NEWS" "README" "docs") url=http://www.rasterbar.com/products/libtorrent slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "libtorrent-rasterbar (a bittorrent C++ library)" "libtorrent is a C++ library that aims to be a good alternative to all" "of the other bittorrent implementations around. It is a library, not" "a full featured client, although it comes with an example client." "" "Homepage: http://www.rasterbar.com/products/libtorrent/" ) build() { cd $startdir/src/$pkgname-$pkgver # https://github.com/arvidn/libtorrent/issues/7519 # remove usage of malloc_usable_size() for _FORTIFY_SOURCE=3 compatibility patch -p1 < ../010-libtorrent-rasterbar-fix-for-fortify-source-3.patch || return 1 mkdir -p build cd build cmake \ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR:PATH=lib${LIBDIRSUFFIX} \ -Dpython-bindings=ON \ -DCMAKE_BUILD_TYPE=Release .. make make install/strip DESTDIR=$PKG cd .. }