app=enet
version=1.3.15
build=1sml
homepage="http://enet.bespin.org/"
download="http://enet.bespin.org/download/enet-$version.tar.gz"
requires="musl"
desc="simple and robust network communication layer over UDP"

build() {
  mkandenterbuilddir
  rm -rf $app-$version

  tar xf $srcdir/$app-$version.tar.?z*
  cd $app-$version 
  fixbuilddirpermissions

  ./configure \
    --prefix="" \
    --enable-static=no

  make
  make install DESTDIR=$pkg 

  cp LICENSE $pkgdocs/

  mkfinalpkg
}

sha512sums="
41ce9bae1286e61cc2288d326c6571cce35be0fa5abf957c7a1386b785e4c6744b744792ac30c8318bfd11eae5aa4731430c973ffa6a09694bd0b0be8f8b4dae  enet-1.3.15.tar.gz
"
