APP=libasr
VERSION=1.0.4
BUILD=1sml
HOMEPAGE='https://github.com/OpenSMTPD/libasr'
DOWNLOAD='https://github.com/OpenSMTPD/libasr/archive/refs/tags/1.0.4.tar.gz'
DESC="ASyncronous Resolver library"
REQUIRES="musl openssl"

build() {
  mkandenterbuilddir
  rm -rf $APP-$VERSION

  tar xf $SRCDIR/$APP-$VERSION.tar.?z*
  cd $APP-$VERSION
  fixbuilddirpermissions

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

  make
  make install DESTDIR=$PKG

  cp LICENCE $PKGDOCS/

  mkfinalpkg
}

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