[arch-commits] Commit in libtorrent-rasterbar/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Tue Jun 8 16:43:09 UTC 2021
Date: Tuesday, June 8, 2021 @ 16:43:09
Author: foutrelis
Revision: 417472
archrelease: copy trunk to staging-x86_64
Added:
libtorrent-rasterbar/repos/staging-x86_64/
libtorrent-rasterbar/repos/staging-x86_64/PKGBUILD
(from rev 417471, libtorrent-rasterbar/trunk/PKGBUILD)
----------+
PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
Copied: libtorrent-rasterbar/repos/staging-x86_64/PKGBUILD (from rev 417471, libtorrent-rasterbar/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2021-06-08 16:43:09 UTC (rev 417472)
@@ -0,0 +1,50 @@
+# 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}
+}
More information about the arch-commits
mailing list