APP=expat
VERSION=2.2.9
BUILD=1sml
HOMEPAGE='https://libexpat.github.io/'
DOWNLOAD='https://github.com/libexpat/libexpat/releases/download/R_2_2_9/expat-2.2.9.tar.xz'
DESC="C library for parsing XML"
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="
85232a37d6b3b7aed0c16bbe30644c23faf80180d2e6c470fc60eb9e3da7fb4a315e9c97f02c5e8bbbd7e051a4e192d691763c228e388ece2ce96e1f4cb3588b  expat-2.2.9.tar.lz
"
