#Maintainer: Dimitris Tzemos pkgname=libtorrent-rasterbar pkgver=1.1.5 pkgrel=1dj _pkgver=${pkgver//./_} source=("https://github.com/arvidn/libtorrent/archive/libtorrent-${_pkgver}/$pkgname-$pkgver.tar.gz") 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 # Avoid depending on newer processors sed -i 's/-msse4.2//' configure.ac || return 1 ./autotool.sh # https://github.com/qbittorrent/qBittorrent/issues/5265#issuecomment-220007436 CXXFLAGS="$CXXFLAGS -std=c++11" \ ./configure --prefix=/usr --libdir=/usr/lib${LIBDIRSUFFIX} --localstatedir=/var --sysconfdir=/etc \ --disable-static \ --with-boost-libdir=/usr/lib${LIBDIRSUFFIX} \ --enable-python-binding \ --build=$arch-slackware-linux make -j $numjobs || return 1 make install DESTDIR=$startdir/pkg mkdir -p $startdir/pkg/usr/doc/$pkgname-$pkgver cp -a docs $startdir/pkg/usr/doc/$pkgname-$pkgver || return 1 chown -R root:root $startdir/pkg }