[arch-commits] Commit in (dht dht/trunk dht/trunk/PKGBUILD)

Antonio Rojas arojas at gemini.archlinux.org
Thu Feb 10 21:56:36 UTC 2022


    Date: Thursday, February 10, 2022 @ 21:56:36
  Author: arojas
Revision: 436900

Unbundle from transmission

Added:
  dht/
  dht/trunk/
  dht/trunk/PKGBUILD

----------+
 PKGBUILD |   30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

Added: dht/trunk/PKGBUILD
===================================================================
--- dht/trunk/PKGBUILD	                        (rev 0)
+++ dht/trunk/PKGBUILD	2022-02-10 21:56:36 UTC (rev 436900)
@@ -0,0 +1,30 @@
+# Maintainer:
+# Contributor: Solomon Choina <shlomochoina at gmail.com>
+
+pkgname=dht
+pkgver=0.26
+pkgrel=1
+pkgdesc='BitTorrent DHT library'
+arch=(x86_64)
+url='https://github.com/jech/dht'
+license=(MIT)
+makedepends=(cmake)
+source=(https://github.com/jech/dht/archive/refs/tags/$pkgname-$pkgver.tar.gz
+        dht-cmake.patch::https://github.com/transmission/dht/commit/b02da598.patch)
+sha256sums=('3873d54b786cf74090672ed6f786b82510ae375d5a8d8f4d99314e358d898baa'
+            '91fb75029bf04456bb7fd9c7cc14d544e906d35a309cc8de5be081049aeb7649')
+
+prepare() {
+  patch -d dht-dht-$pkgver -p1 < dht-cmake.patch # Add cmake support
+}
+
+build() {
+  cmake -B build -S dht-dht-$pkgver \
+    -DCMAKE_INSTALL_PREFIX=/usr
+  cmake --build build
+}
+
+package() {
+  DESTDIR="$pkgdir" cmake --install build
+  install -Dm644 dht-dht-$pkgver/LICENCE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE 
+}



More information about the arch-commits mailing list