app=libuv
version=1.37.0
build=1sml
homepage="https://github.com/libuv/libuv"
download="https://github.com/libuv/libuv/archive/refs/tags/v$version.tar.gz"
desc="multi-platform library with a focus on asychronous I/O"
requires="musl"

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

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

  ./configure \
    --prefix="" \
    --disable-static

  make
  make install DESTDIR=$pkg 

  cp LICENSE* $pkgdocs/

  mkfinalpkg
}

sha512sums="
55756c310172b499f38496451ee5dca9abd6caa71e2a2077491dfa8de9e74247e3ca9bb9b6034837d46db6614a9728234bc9f613de85ae199d21526aff0b73b4  libuv-v1.37.0.tar.lz
"
