* add dht
This commit is contained in:
parent
3b599d2772
commit
ff10aad294
14
dht/.SRCINFO
Normal file
14
dht/.SRCINFO
Normal file
@ -0,0 +1,14 @@
|
||||
pkgbase = dht
|
||||
pkgdesc = BitTorrent DHT library
|
||||
pkgver = 0.27
|
||||
pkgrel = 5
|
||||
url = https://github.com/jech/dht
|
||||
arch = x86_64
|
||||
license = MIT
|
||||
makedepends = cmake
|
||||
source = https://github.com/jech/dht/archive/refs/tags/dht-0.27.tar.gz
|
||||
source = dht-cmake.patch::https://github.com/transmission/dht/commit/b02da598.patch
|
||||
sha256sums = caba469a784a5c359c084099fdc025cfe09b1faec2ba9ba257b7384351c43c0a
|
||||
sha256sums = 91fb75029bf04456bb7fd9c7cc14d544e906d35a309cc8de5be081049aeb7649
|
||||
|
||||
pkgname = dht
|
33
dht/PKGBUILD
Normal file
33
dht/PKGBUILD
Normal file
@ -0,0 +1,33 @@
|
||||
# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
|
||||
# Maintainer: Brett Cornwall <ainola@archlinux.org>
|
||||
# Contributor: Solomon Choina <shlomochoina@gmail.com>
|
||||
|
||||
pkgname=dht
|
||||
pkgver=0.27
|
||||
pkgrel=5
|
||||
pkgdesc='BitTorrent DHT library'
|
||||
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
|
||||
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
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user