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
"
