APP=libuv
VERSION=1.37.0
BUILD=1sml
HOMEPAGE='https://github.com/libuv/libuv'
DOWNLOAD='https://github.com/libuv/libuv/archive/refs/tags/v1.37.0.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
"
