2017-04-06 13:07:16 +02:00
|
|
|
|
# Description: Kademlia DHT'nin (Distributed Hash Table) bir C ++ 11 uygulaması,
|
2016-12-18 21:29:51 +01:00
|
|
|
|
# URL: https://github.com/savoirfairelinux/opendht
|
|
|
|
|
# packager: milisarge
|
2016-12-18 21:39:34 +01:00
|
|
|
|
# Depends on: cmake gnutls nettle msgpack-c python3-setuptools cython
|
2016-12-18 21:29:51 +01:00
|
|
|
|
|
|
|
|
|
name=opendht
|
|
|
|
|
version=master
|
|
|
|
|
release=1
|
|
|
|
|
source=()
|
|
|
|
|
_source=https://github.com/savoirfairelinux/opendht
|
|
|
|
|
|
|
|
|
|
build() {
|
|
|
|
|
if [ ! -d $DERLEME_KAYNAKDIZIN/$name ];then
|
|
|
|
|
git clone $_source $DERLEME_KAYNAKDIZIN/$name
|
|
|
|
|
else
|
|
|
|
|
cd $DERLEME_KAYNAKDIZIN/$name
|
|
|
|
|
git pull
|
|
|
|
|
fi
|
|
|
|
|
cp -r $DERLEME_KAYNAKDIZIN/$name $SRC/
|
|
|
|
|
cd $SRC/$name
|
|
|
|
|
mkdir -p build
|
|
|
|
|
cd build
|
|
|
|
|
cmake .. \
|
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
|
-DOPENDHT_PYTHON=ON \
|
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
|
-DCMAKE_INSTALL_LIBDIR=lib
|
|
|
|
|
make
|
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
|
}
|