app=libidn2
version=2.3.0
build=1sml
homepage="https://gitlab.com/libidn/libidn2"
desc="GNU Internationalized Domain Name library"
requires="libunistring"

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="
f525d6fa07e3b77ecb6e9ef70c3480b0ff4a7e2b06610c81cd1c02a3882efab29c8798f238b028445a33a70d0526246fa1161410920b2365e82a204381844446  libidn2-2.3.0.tar.lz
"
