# Maintainer: PktSurf <smlinux@pktsurf.in>
app=libasr
version=1.0.4
build=1sml
homepage="https://github.com/OpenSMTPD/libasr"
download="https://github.com/OpenSMTPD/libasr/archive/refs/tags/$version.tar.gz"
desc="ASyncronous Resolver library"
requires="musl openssl"

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

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

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

  make
  make install DESTDIR=$pkg

  cp LICENCE $pkgdocs/

  mkfinalpkg
}

sha512sums="
77e519a71762a9e02cff9fe29b9da68e5a3e84a45d930c1a45b24c0d2e4e827c078ce728d82c7124cee86c1af80f1a4b42c3da0f5e0f510aad4169f91bc6509b  libasr-1.0.4.tar.lz
"
