[arch-commits] Commit in libtorrent-rasterbar/repos (2 files)

Felix Yan felixonmars at archlinux.org
Tue Mar 10 12:19:22 UTC 2020


    Date: Tuesday, March 10, 2020 @ 12:19:21
  Author: felixonmars
Revision: 377262

archrelease: copy trunk to testing-x86_64

Added:
  libtorrent-rasterbar/repos/testing-x86_64/
  libtorrent-rasterbar/repos/testing-x86_64/PKGBUILD
    (from rev 377261, libtorrent-rasterbar/trunk/PKGBUILD)

----------+
 PKGBUILD |   60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 60 insertions(+)

Copied: libtorrent-rasterbar/repos/testing-x86_64/PKGBUILD (from rev 377261, libtorrent-rasterbar/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2020-03-10 12:19:21 UTC (rev 377262)
@@ -0,0 +1,60 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Ionut Biru <ibiru at archlinux.org>
+# Contributor: Hugo Doria <hugo at archlinux.org>
+
+pkgname=libtorrent-rasterbar
+pkgver=1.2.5
+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')
+_pkgver=${pkgver//./_}
+source=(https://github.com/arvidn/libtorrent/releases/download/libtorrent-$_pkgver/$pkgname-$pkgver.tar.gz)
+sha512sums=('b907916bb2b4d550a5173783163cb192c31c0db5e25a4807a4701d1e5fa7e0d4fd9f1fb2c89b43f613a750b42816b07576fb773663fbf3cfb2e3e4b9de380f26')
+
+prepare() {
+  mkdir py2 py3
+  cd $pkgname-$pkgver
+
+  # Avoid depending on newer processors
+  sed -i 's/-msse4.2//' 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
+}
+
+package() {
+  make -C py2 DESTDIR="$pkgdir" install
+  make -C py3 DESTDIR="$pkgdir" install
+  install -Dm644 $pkgname-$pkgver/COPYING \
+    "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
+  # Remove most example binaries
+  rm "$pkgdir"/usr/bin/{*_test,*_tester,simple_client,stats_counters}
+}



More information about the arch-commits mailing list