mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
community/opendht to 1.8.1-1
This commit is contained in:
parent
ea59f60d34
commit
de38170992
1 changed files with 16 additions and 25 deletions
|
@ -1,12 +1,13 @@
|
||||||
# Maintainer: Baptiste Jonglez <baptiste--aur at jonglez dot org>
|
# Maintainer: Baptiste Jonglez <baptiste--aur at jonglez dot org>
|
||||||
|
# Maintainer: Bruno Pagani <archange@archlinux.org>
|
||||||
|
|
||||||
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
||||||
# - set -DOPENDHT_LTO=OFF
|
# - set -DOPENDHT_LTO=OFF
|
||||||
# - explicitly link v5/v6 with libatomic
|
# - explicitly link v5/v6 with libatomic
|
||||||
|
|
||||||
pkgname=opendht
|
pkgname=opendht
|
||||||
pkgver=1.7.4
|
pkgver=1.8.1
|
||||||
pkgrel=4
|
pkgrel=1
|
||||||
epoch=1
|
epoch=1
|
||||||
pkgdesc="A C++11 implementation of the Kademlia DHT (Distributed Hash Table)"
|
pkgdesc="A C++11 implementation of the Kademlia DHT (Distributed Hash Table)"
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
|
@ -15,20 +16,22 @@ makedepends=('msgpack-c' 'cmake' 'cython' 'systemd' 'cppunit')
|
||||||
optdepends=('python: to use the Python bindings')
|
optdepends=('python: to use the Python bindings')
|
||||||
url="https://github.com/savoirfairelinux/opendht"
|
url="https://github.com/savoirfairelinux/opendht"
|
||||||
license=('GPL3')
|
license=('GPL3')
|
||||||
source=("https://github.com/savoirfairelinux/opendht/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz")
|
source=("${url}/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz")
|
||||||
sha256sums=('d82601b31841c611c7a6e65bd7b63e8d21a6961b0db64b8fbc518c9574c52745')
|
sha256sums=('96564cd3c7fee711e7bcd71a83fef0e02721b06c1de921abf73b1872e616f962')
|
||||||
sha512sums=('be526c696f51471f58278ed53b0167311c2c0dca1db87da711bad9987922a6b5608a71508bd36011da27b3438964a3ee2406439c17c77db8c157c65222faa04e')
|
|
||||||
|
prepare() {
|
||||||
|
mkdir -p build
|
||||||
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
||||||
|
|
||||||
[[ $CARCH == "arm" || $CARCH == "armv6h" ]] && echo "target_link_libraries(opendht PRIVATE atomic)" >> CMakeLists.txt
|
|
||||||
|
|
||||||
msg2 'Building...'
|
|
||||||
mkdir -p build
|
|
||||||
cd build
|
cd build
|
||||||
cmake .. \
|
|
||||||
|
[[ $CARCH == "arm" || $CARCH == "armv6h" ]] && echo "target_link_libraries(opendht PRIVATE atomic)" >> ../${pkgname}-${pkgver}/CMakeLists.txt
|
||||||
|
|
||||||
|
cmake ../${pkgname}-${pkgver} \
|
||||||
-DCMAKE_BUILD_TYPE=None \
|
-DCMAKE_BUILD_TYPE=None \
|
||||||
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||||
|
-DCMAKE_INSTALL_LIBDIR=lib \
|
||||||
-DOPENDHT_TESTS=ON \
|
-DOPENDHT_TESTS=ON \
|
||||||
-DOPENDHT_DOCUMENTATION=OFF \
|
-DOPENDHT_DOCUMENTATION=OFF \
|
||||||
-DOPENDHT_STATIC=OFF \
|
-DOPENDHT_STATIC=OFF \
|
||||||
|
@ -38,28 +41,16 @@ build() {
|
||||||
-DOPENDHT_PYTHON=ON \
|
-DOPENDHT_PYTHON=ON \
|
||||||
-DOPENDHT_PROXY_SERVER=ON \
|
-DOPENDHT_PROXY_SERVER=ON \
|
||||||
-DOPENDHT_PROXY_CLIENT=ON \
|
-DOPENDHT_PROXY_CLIENT=ON \
|
||||||
-DOPENDHT_PUSH_NOTIFICATIONS=ON \
|
-DOPENDHT_PUSH_NOTIFICATIONS=ON
|
||||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
||||||
-DCMAKE_INSTALL_LIBDIR=lib
|
|
||||||
make
|
make
|
||||||
}
|
}
|
||||||
|
|
||||||
check() {
|
check() {
|
||||||
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
||||||
cd build
|
cd build
|
||||||
make test
|
make test
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
||||||
|
|
||||||
msg2 'Installing...'
|
|
||||||
cd build
|
cd build
|
||||||
make DESTDIR="$pkgdir" install
|
make DESTDIR="$pkgdir" install
|
||||||
cd ..
|
|
||||||
|
|
||||||
msg2 'Installing documentation...'
|
|
||||||
install -D -m644 README.md "${pkgdir}/usr/share/doc/opendht/README.md"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# vim:set ts=2 sw=2 et:
|
|
||||||
|
|
Loading…
Reference in a new issue