# Maintainer: PktSurf <smlinux@pktsurf.in>
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"

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

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

build() {
  ./configure \
    --prefix="" \
    --enable-static=no

  make
  make install DESTDIR=$pkg 

  cp LICENSE $pkgdocs/

  mkfinalpkg
}

sha512sums="
dd18c68e395aa8b259607179bfdf8e116276397f89da4473f9c94538bab8ce0036a416c5feb893e01b65f78f16ee1a0dd8959657325f29c5df352d9c69ae33a5  enet-1.3.15.tar.lz
"
