From 6ff9d4fccaacb22c244592ef66de56531306e002 Mon Sep 17 00:00:00 2001 From: felixonmars Date: Mon, 28 Dec 2020 18:45:04 +0000 Subject: [PATCH] archrelease: copy trunk to testing-x86_64 git-svn-id: file:///srv/repos/svn-packages/svn@405070 eb2447ed-0c53-47e4-bac8-5bc4a241df78 --- .../repos/testing-x86_64/PKGBUILD | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 libtorrent-rasterbar/repos/testing-x86_64/PKGBUILD diff --git a/libtorrent-rasterbar/repos/testing-x86_64/PKGBUILD b/libtorrent-rasterbar/repos/testing-x86_64/PKGBUILD new file mode 100644 index 000000000000..a5c05560c955 --- /dev/null +++ b/libtorrent-rasterbar/repos/testing-x86_64/PKGBUILD @@ -0,0 +1,50 @@ +# Maintainer: Felix Yan +# Contributor: Ionut Biru +# Contributor: Hugo Doria + +pkgname=libtorrent-rasterbar +pkgver=1.2.11 +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' 'python') +options=('!emptydirs') +source=(https://github.com/arvidn/libtorrent/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz + $pkgname-cxx14-fix.patch::https://github.com/arvidn/libtorrent/pull/5026.patch) +sha512sums=('abcfaa9f22f9adc030f0c4ec8dfd2e5070d1177cc2cf0bcb4e08dfca1b2e806a5c90a82d1860b5dc51efe3e8d2bea3c1d3d966c132a39bfdd5d4791e59bb503a' + '94ddc3bdfc33f7b5300cc01b7c821dbd9a1433cae93bb7d467a1a732e84e7be4a6e75fbd69e88802e2eecca9c8541ecd1856d4ca2b508af224562cb05de80cca') + +prepare() { + cd $pkgname-$pkgver + # https://bugs.archlinux.org/task/67754 + patch -p1 -i ../$pkgname-cxx14-fix.patch + + # Avoid depending on newer processors + sed -i 's/-msse4.2//' configure.ac + + autoreconf -if +} + +build() { + cd $pkgname-$pkgver + ./configure \ + --prefix=/usr \ + --enable-python-binding \ + --enable-examples \ + --disable-static \ + --with-libiconv \ + --with-boost-python=boost_python3 +} + +package() { + cd $pkgname-$pkgver + make DESTDIR="$pkgdir" install + install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + + # Remove most example binaries + rm "$pkgdir"/usr/bin/{*_test,*_tester,simple_client,stats_counters} +}