# Maintainer: PktSurf <smlinux@pktsurf.in>
app=libuv
version=1.45.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"

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

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

build() {
  ./autogen.sh

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

  make
  make install DESTDIR=$pkg 

  cp LICENSE* $pkgdocs/

  mkfinalpkg
}

sha512sums="
20753fcbded93dead97777d6c18eb36b2440a73475946da2fe0d2125059e6d3915e89f2889bffb944f6507ee228860a3df9814d1bd68a61db235017f7f601bd0  libuv-v1.45.0.tar.lz
"