mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-03-19 00:21:40 +00:00
extra/libtorrent-rasterbar to 1.2.10-5
This commit is contained in:
parent
41782398f1
commit
bf872ebe69
1 changed files with 12 additions and 25 deletions
|
@ -7,25 +7,24 @@
|
|||
|
||||
pkgname=libtorrent-rasterbar
|
||||
pkgver=1.2.10
|
||||
pkgrel=2
|
||||
pkgrel=5
|
||||
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')
|
||||
makedepends=('boost' 'python')
|
||||
options=('!emptydirs')
|
||||
source=(https://github.com/arvidn/libtorrent/releases/download/libtorrent-$pkgver/$pkgname-$pkgver.tar.gz
|
||||
cxx14-fix.patch::https://github.com/arvidn/libtorrent/pull/5026.patch)
|
||||
$pkgname-cxx14-fix.patch::https://github.com/arvidn/libtorrent/pull/5026.patch)
|
||||
sha512sums=('50f912d85eefa94c560613cf53d9a2cb00bf4ed800f15e7a43dca35dd941a931a681d1d9ac7305cde0b435bdcf7c6e76a71fbb60d95aefbdca6f982d57b3951f'
|
||||
'08a42feb95a53ed2e932abf60f9f654df7031676334f07996fa2fbbdde0758d54058f7ffc772fd36a5c92cd1dd4da0d556e267536347516a29f9828b4b99c5b7')
|
||||
'94ddc3bdfc33f7b5300cc01b7c821dbd9a1433cae93bb7d467a1a732e84e7be4a6e75fbd69e88802e2eecca9c8541ecd1856d4ca2b508af224562cb05de80cca')
|
||||
|
||||
prepare() {
|
||||
mkdir py2 py3
|
||||
cd $pkgname-$pkgver
|
||||
# https://bugs.archlinux.org/task/67754
|
||||
patch -p1 -i ../cxx14-fix.patch
|
||||
patch -p1 -i ../$pkgname-cxx14-fix.patch
|
||||
|
||||
# Avoid depending on newer processors
|
||||
sed -i 's/-msse4.2//' configure.ac
|
||||
|
@ -33,34 +32,22 @@ prepare() {
|
|||
autoreconf -if
|
||||
}
|
||||
|
||||
_build() (
|
||||
cd py$1
|
||||
|
||||
# FS#50745
|
||||
_boost="boost_python"
|
||||
if [ $1 -eq 3 ]; then _boost="boost_python3"; fi
|
||||
|
||||
build() {
|
||||
cd $pkgname-$pkgver
|
||||
[[ $CARCH == "arm" || $CARCH == "armv6h" ]] && LIBS="-latomic"
|
||||
LIBS=$LIBS PYTHON=/usr/bin/python$1 \
|
||||
../$pkgname-$pkgver/configure \
|
||||
LIBS=$LIBS ./configure \
|
||||
--prefix=/usr \
|
||||
--enable-python-binding \
|
||||
--enable-examples \
|
||||
--disable-static \
|
||||
--with-libiconv \
|
||||
--with-boost-python=$_boost
|
||||
)
|
||||
|
||||
build() {
|
||||
_build 2
|
||||
_build 3
|
||||
--with-boost-python=boost_python3
|
||||
}
|
||||
|
||||
package() {
|
||||
make -C py2 DESTDIR="$pkgdir" install
|
||||
make -C py3 DESTDIR="$pkgdir" install
|
||||
install -Dm644 $pkgname-$pkgver/COPYING \
|
||||
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||
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}
|
||||
|
|
Loading…
Reference in a new issue