app=libidn
version=1.35
build=1sml
homepage="https://www.gnu.org/software/libidn/"
desc="GNU Internationalized Domain Name library"
requires="musl"

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

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

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

  make
  make install DESTDIR=$pkg

  cp COPYING* $pkgdocs/

  mkfinalpkg
}

sha512sums="
7c7af33279dc60af2c148da0c746a3af227de887e6e967afe49ba04f8d01c5ff6de792ca6dd0913525a5f4488557bba6eb12f4cf16369165b029d27942e01a31  libidn-1.35.tar.lz
"
