[arch-commits] Commit in libtorrent-rasterbar/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Wed Jun 9 20:40:42 UTC 2021
Date: Wednesday, June 9, 2021 @ 20:40:42
Author: felixonmars
Revision: 417611
upgpkg: libtorrent-rasterbar 1:1.2.14-1
Modified:
libtorrent-rasterbar/trunk/PKGBUILD
----------+
PKGBUILD | 49 +++++++++++++++++++------------------------------
1 file changed, 19 insertions(+), 30 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-06-09 20:14:37 UTC (rev 417610)
+++ PKGBUILD 2021-06-09 20:40:42 UTC (rev 417611)
@@ -3,48 +3,37 @@
# Contributor: Hugo Doria <hugo at archlinux.org>
pkgname=libtorrent-rasterbar
-pkgver=1.2.11
-pkgrel=2
+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')
-makedepends=('boost' 'python')
+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
- $pkgname-cxx14-fix.patch::https://github.com/arvidn/libtorrent/pull/5026.patch)
-sha512sums=('abcfaa9f22f9adc030f0c4ec8dfd2e5070d1177cc2cf0bcb4e08dfca1b2e806a5c90a82d1860b5dc51efe3e8d2bea3c1d3d966c132a39bfdd5d4791e59bb503a'
- 'a3126164ec35260f3d388471adee08e19e4e39d189c7bdaba1634f6b86ce13a3b41c9a1f3a2c9a012a03f968942257bc3226983b5260687fbbff80ab324eddfe')
+source=(https://github.com/arvidn/libtorrent/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz)
+sha512sums=('9d23184785597a11f96e9d68ac7bd2ba73a9dbc0568c3fd81ba2f1ef2381f6ee290b48a77f1db6f7ee82aa1f6640a6a54dbfbfa7b236bb3be8a6e083dce6cd69')
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
+ mkdir -p build
}
build() {
- cd $pkgname-$pkgver
- ./configure \
- --prefix=/usr \
- --enable-python-binding \
- --enable-examples \
- --disable-static \
- --with-libiconv \
- --with-boost-python=boost_python3
+ 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 $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}
+ 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