app=expat
version=2.4.5
mversion="$(echo $version | sed 's@.@_@')"
build=1sml
homepage="https://libexpat.github.io/"
download="https://github.com/libexpat/libexpat/archive/refs/tags/R_$mversion.tar.gz"
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="
17480d0634b66bc2873897353d94b0c623e2a9a362cabe50f66adb62d5541b0f7bc4e2d3110124c4a1e14498e4db2c582a600e12234ebf91eeffe222f5dee44a  expat-2.4.5.tar.lz
"
