[arch-commits] Commit in dht/repos (2 files)

Brett Cornwall ainola at gemini.archlinux.org
Fri Apr 29 01:21:04 UTC 2022


    Date: Friday, April 29, 2022 @ 01:21:03
  Author: ainola
Revision: 1191734

archrelease: copy trunk to community-staging-x86_64

Added:
  dht/repos/community-staging-x86_64/
  dht/repos/community-staging-x86_64/PKGBUILD
    (from rev 1191733, dht/trunk/PKGBUILD)

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

Copied: dht/repos/community-staging-x86_64/PKGBUILD (from rev 1191733, dht/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2022-04-29 01:21:03 UTC (rev 1191734)
@@ -0,0 +1,32 @@
+# Maintainer: Brett Cornwall <ainola at archlinux.org>
+# Contributor: Solomon Choina <shlomochoina at gmail.com>
+
+pkgname=dht
+pkgver=0.27
+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=('caba469a784a5c359c084099fdc025cfe09b1faec2ba9ba257b7384351c43c0a'
+            '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 \
+    -DCMAKE_INSTALL_INCLUDEDIR=include/dht \
+    -DCMAKE_C_FLAGS="$CFLAGS -ffat-lto-objects"
+  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