Date: Saturday, November 13, 2021 @ 17:46:34
  Author: archange
Revision: 1045766

upgpkg: opendht 1:2.3.1.r7+ga89e4d62-1

Switch to commit packaging in order to more easily suit jami-daemon needs.

Modified:
  opendht/trunk/PKGBUILD

----------+
 PKGBUILD |   19 +++++++++----------
 1 file changed, 9 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2021-11-13 17:46:07 UTC (rev 1045765)
+++ PKGBUILD    2021-11-13 17:46:34 UTC (rev 1045766)
@@ -3,7 +3,7 @@
 
 pkgname=opendht
 epoch=1
-pkgver=2.3.1
+pkgver=2.3.1.r7+ga89e4d62
 pkgrel=1
 pkgdesc="C++14 Distributed Hash Table (DHT) implementation"
 arch=(x86_64)
@@ -10,21 +10,20 @@
 url="https://github.com/savoirfairelinux/opendht";
 license=(GPL3)
 depends=(glibc gnutls nettle readline argon2 jsoncpp libjsoncpp.so fmt 
http-parser openssl)
-makedepends=(cmake msgpack-c msgpack-cxx asio restinio cython 
python-setuptools)
+makedepends=(git cmake msgpack-c msgpack-cxx asio restinio cython 
python-setuptools)
 checkdepends=(cppunit)
 optdepends=('python: to use the Python bindings')
-source=(${url}/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz
-        opendht-gcc11.patch)
-sha256sums=('9a75db4f119761d6524964b27d3a49aa809a6cb08bde963edc2f338458433c78'
-            '4cd9ee51b3da01f00b0eb4367c48fb3a00df0840d5cf7beafaabcd149c8bd0fc')
+_commit=a89e4d626eae388bfd4049faadcb5deec58fb6fc
+source=(git+${url}#commit=${_commit})
+sha256sums=(SKIP)
 
-prepare() {
-  # https://github.com/savoirfairelinux/opendht/pull/567
-  patch -d ${pkgname}-${pkgver} -p1 < opendht-gcc11.patch
+pkgver() {
+  cd ${pkgname}
+  git describe --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./;s/-/+/'
 }
 
 build() {
-  cmake -B build -S ${pkgname}-${pkgver} \
+  cmake -B build -S ${pkgname} \
     -DCMAKE_BUILD_TYPE=None \
     -DCMAKE_INSTALL_PREFIX=/usr \
     -DCMAKE_INSTALL_LIBDIR=lib \

Reply via email to