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

Felix Yan felixonmars at archlinux.org
Wed Jun 9 20:40:53 UTC 2021


    Date: Wednesday, June 9, 2021 @ 20:40:53
  Author: felixonmars
Revision: 417612

archrelease: copy trunk to testing-x86_64

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

----------+
 PKGBUILD |   89 ++++++++++++++++++++++++++-----------------------------------
 1 file changed, 39 insertions(+), 50 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-06-09 20:40:42 UTC (rev 417611)
+++ PKGBUILD	2021-06-09 20:40:53 UTC (rev 417612)
@@ -1,50 +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.11
-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' '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'
-            'a3126164ec35260f3d388471adee08e19e4e39d189c7bdaba1634f6b86ce13a3b41c9a1f3a2c9a012a03f968942257bc3226983b5260687fbbff80ab324eddfe')
-
-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}
-}

Copied: libtorrent-rasterbar/repos/testing-x86_64/PKGBUILD (from rev 417611, libtorrent-rasterbar/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-06-09 20:40:53 UTC (rev 417612)
@@ -0,0 +1,39 @@
+# 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.14
+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' 'openssl')
+makedepends=('boost' 'cmake' 'ninja' 'python-setuptools')
+options=('!emptydirs')
+source=(https://github.com/arvidn/libtorrent/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz)
+sha512sums=('9d23184785597a11f96e9d68ac7bd2ba73a9dbc0568c3fd81ba2f1ef2381f6ee290b48a77f1db6f7ee82aa1f6640a6a54dbfbfa7b236bb3be8a6e083dce6cd69')
+
+prepare() {
+  mkdir -p build
+}
+
+build() {
+  cd build
+  cmake -DCMAKE_BUILD_TYPE=Release \
+    -DCMAKE_INSTALL_PREFIX="/usr" \
+    -DCMAKE_INSTALL_LIBDIR="lib" \
+    -Dpython-bindings=ON \
+    -Dboost-python-module-name="python" \
+    -Dpython-egg-info=ON \
+    -GNinja ../$pkgname-$pkgver
+  ninja
+}
+
+package() {
+  cd build
+  DESTDIR="$pkgdir" ninja install
+  install -Dm644 ../$pkgname-$pkgver/COPYING -t "$pkgdir"/usr/share/licenses/$pkgname/
+}



More information about the arch-commits mailing list