# Tanım: STUN server ve client
# URL: http://www.stunprotocol.org/
# Paketçi: Cihan_Alkan
# Gerekler: openssl boost
# Grup: 

isim=stuntman
surum=1.2.13
devir=1
kaynak=(https://github.com/jselbie/stunserver/archive/version1.2.13.tar.gz)

derle() {

  cd "${SRC}/stunserver-version${surum}"
  sed -i 's|^#OPENSSL_INC.*|OPENSSL_INCLUDE := -I/usr/include/openssl-1.0|' common.inc
  sed -i -E 's|^CRYPTO_LIBS(.*)|CRYPTO_LIBS\1 -L/usr/lib/openssl-1.0|' common.inc
  make

  install -D -m0755 -t "$PKG/usr/bin/" stun{client,server}

}