[arch-commits] Commit in libtorrent/trunk (PKGBUILD libtorrent-version.patch)

Jaroslav Lichtblau jlichtblau at archlinux.org
Mon Jul 13 18:49:39 UTC 2015


    Date: Monday, July 13, 2015 @ 20:49:39
  Author: jlichtblau
Revision: 136788

upgpkg: libtorrent 0.13.5-1 - new upstream release

Added:
  libtorrent/trunk/libtorrent-version.patch
Modified:
  libtorrent/trunk/PKGBUILD

--------------------------+
 PKGBUILD                 |   16 ++++++++++++----
 libtorrent-version.patch |   10 ++++++++++
 2 files changed, 22 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-07-13 17:54:49 UTC (rev 136787)
+++ PKGBUILD	2015-07-13 18:49:39 UTC (rev 136788)
@@ -5,7 +5,7 @@
 # Contributor: sh__
 
 pkgname=libtorrent
-pkgver=0.13.4
+pkgver=0.13.5
 pkgrel=1
 pkgdesc='BitTorrent library with a focus on high performance and good code'
 url='http://rakshasa.github.io/rtorrent/'
@@ -14,12 +14,20 @@
 depends=('openssl')
 #source=("http://libtorrent.rakshasa.no/downloads/${pkgname}-${pkgver}.tar.gz")
 #sha1sums=('3a3ca87054d020bc376abe2c1ea15bbbaef31131')
-source=("https://github.com/rakshasa/${pkgname}/archive/${pkgver}.tar.gz")
-sha1sums=('7f086998ee01783b477565afd59952d6f6c34580')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/rakshasa/${pkgname}/archive/${pkgver}.tar.gz"
+        $pkgname-version.patch)
+sha1sums=('0c83e8b9ece2c07986632dcc800f893451b23d71'
+          'ea80eb35cf5812840315726e67a5243ea6dccad4')
 
+prepare() {
+	cd "${srcdir}/${pkgname}-${pkgver}"
+	sed '/AM_PATH_CPPUNIT/d' -i configure.ac
+#https://github.com/rakshasa/libtorrent/issues/82
+        patch -Np0 -i "${srcdir}"/$pkgname-version.patch
+}
+
 build() {
 	cd "${srcdir}/${pkgname}-${pkgver}"
-	sed '/AM_PATH_CPPUNIT/d' -i configure.ac
 	./autogen.sh
 
 	export CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing"

Added: libtorrent-version.patch
===================================================================
--- libtorrent-version.patch	                        (rev 0)
+++ libtorrent-version.patch	2015-07-13 18:49:39 UTC (rev 136788)
@@ -0,0 +1,10 @@
+--- configure.ac.orig	2015-07-02 00:19:04.000000000 +0200
++++ configure.ac	2015-07-13 20:32:07.158592915 +0200
+@@ -1 +1 @@
+-AC_INIT(libtorrent, 0.13.4, sundell.software at gmail.com)
++AC_INIT(libtorrent, 0.13.5, sundell.software at gmail.com)
+@@ -6,2 +6,2 @@
+-AC_DEFINE(PEER_NAME, "-lt0D40-", Identifier that is part of the default peer id)
+-AC_DEFINE(PEER_VERSION, "lt\x0D\x40", 4 byte client and version identifier for DHT)
++AC_DEFINE(PEER_NAME, "-lt0D50-", Identifier that is part of the default peer id)
++AC_DEFINE(PEER_VERSION, "lt\x0D\x50", 4 byte client and version identifier for DHT)



More information about the arch-commits mailing list