[arch-commits] Commit in libtorrent-rasterbar/repos/staging-x86_64 (PKGBUILD PKGBUILD)

Antonio Rojas arojas at archlinux.org
Wed Dec 4 17:58:30 UTC 2019


    Date: Wednesday, December 4, 2019 @ 17:58:29
  Author: arojas
Revision: 370396

archrelease: copy trunk to staging-x86_64

Added:
  libtorrent-rasterbar/repos/staging-x86_64/PKGBUILD
    (from rev 370395, libtorrent-rasterbar/trunk/PKGBUILD)
Deleted:
  libtorrent-rasterbar/repos/staging-x86_64/PKGBUILD

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2019-12-04 17:57:58 UTC (rev 370395)
+++ PKGBUILD	2019-12-04 17:58:29 UTC (rev 370396)
@@ -1,62 +0,0 @@
-# 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.1
-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=('f9d0f2dd278a56f96f5d6d13996a3647a26acfb31fa9cbd42b2edc68a5ab4818764dec7ab6b0e1a25798adfc6b4460884606af72728c61c7762adbd8bdf4b4c6')
-
-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
-
-  # https://github.com/qbittorrent/qBittorrent/issues/5265#issuecomment-220007436
-  CXXFLAGS="$CXXFLAGS -std=c++11" \
-  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}
-}

Copied: libtorrent-rasterbar/repos/staging-x86_64/PKGBUILD (from rev 370395, libtorrent-rasterbar/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-12-04 17:58:29 UTC (rev 370396)
@@ -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.1
+pkgrel=2
+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=('f9d0f2dd278a56f96f5d6d13996a3647a26acfb31fa9cbd42b2edc68a5ab4818764dec7ab6b0e1a25798adfc6b4460884606af72728c61c7762adbd8bdf4b4c6')
+
+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