Created
September 16, 2020 14:34
Star
You must be signed in to star a gist
libtorrent-rasterbar PKGBUILD that fixes upstream ABI breakage
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pkgname=libtorrent-rasterbar | |
pkgver=1.2.10 | |
pkgrel=1 | |
epoch=1 | |
pkgdesc="A C++ BitTorrent library that aims to be a good alternative to all the other implementations around" | |
url="https://www.rasterbar.com/products/libtorrent/" | |
arch=('x86_64') | |
license=('BSD') | |
depends=('boost-libs') | |
makedepends=('boost' 'python2' 'python') | |
options=('!emptydirs') | |
source=(https://github.com/arvidn/libtorrent/releases/download/libtorrent-$pkgver/$pkgname-$pkgver.tar.gz) | |
sha512sums=('50f912d85eefa94c560613cf53d9a2cb00bf4ed800f15e7a43dca35dd941a931a681d1d9ac7305cde0b435bdcf7c6e76a71fbb60d95aefbdca6f982d57b3951f') | |
prepare() { | |
# mkdir py2 py3 | |
cd $pkgname-$pkgver | |
# Avoid depending on newer processors | |
# sed -i 's/-msse4.2//' configure.ac | |
# sed -i 's/-msse4.2//' configure.ac | |
sed -i 's/\(AX_CXX.*\)$/\1\n AX_CXX_COMPILE_STDCXX(14, [noext], [mandatory])/' configure.ac | |
autoreconf -if | |
} | |
#_build() ( | |
# cd py$1 | |
# # FS#50745 | |
# _boost="boost_python" | |
# if [ $1 -eq 3 ]; then _boost="boost_python3"; fi | |
# PYTHON=/usr/bin/python$1 \ | |
# ../$pkgname-$pkgver/configure \ | |
# --prefix=/usr \ | |
# --enable-python-binding \ | |
# --enable-examples \ | |
# --disable-static \ | |
# --with-libiconv \ | |
# --with-boost-python=$_boost | |
#) | |
build() { | |
# _build 2 | |
# _build 3 | |
cd $pkgname-$pkgver | |
./configure \ | |
--prefix=/usr \ | |
--disable-python-binding \ | |
--enable-examples \ | |
--disable-static \ | |
--with-libiconv | |
} | |
package() { | |
cd $pkgname-$pkgver | |
#make -C py2 DESTDIR="$pkgdir" install | |
#make -C py3 DESTDIR="$pkgdir" install | |
make DESTDIR="$pkgdir" install | |
#install -Dm644 $pkgname-$pkgver/LICENSE \ | |
# "$pkgdir/usr/share/licenses/$pkgname/LICENSE" | |
# Remove most example binaries | |
rm "$pkgdir"/usr/bin/{*_test,*_tester,simple_client,stats_counters} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment