talimat 727 B

12345678910111213141516171819202122232425262728293031
  1. # Description: Kademlia DHT'nin (Distributed Hash Table) bir C ++ 11 uygulaması,
  2. # URL: https://github.com/savoirfairelinux/opendht
  3. # packager: milisarge
  4. # Depends on: cmake gnutls nettle msgpack-c python3-setuptools cython
  5. name=opendht
  6. version=master
  7. release=1
  8. source=()
  9. _source=https://github.com/savoirfairelinux/opendht
  10. build() {
  11. if [ ! -d $DERLEME_KAYNAKDIZIN/$name ];then
  12. git clone $_source $DERLEME_KAYNAKDIZIN/$name
  13. else
  14. cd $DERLEME_KAYNAKDIZIN/$name
  15. git pull
  16. fi
  17. cp -r $DERLEME_KAYNAKDIZIN/$name $SRC/
  18. cd $SRC/$name
  19. mkdir -p build
  20. cd build
  21. cmake .. \
  22. -DCMAKE_BUILD_TYPE=Release \
  23. -DOPENDHT_PYTHON=ON \
  24. -DCMAKE_INSTALL_PREFIX=/usr \
  25. -DCMAKE_INSTALL_LIBDIR=lib
  26. make
  27. make DESTDIR=$PKG install
  28. }