# Maintainer: PktSurf <smlinux@pktsurf.in>
app=expat
version=2.5.0
build=2sml
homepage="https://downloads.sourceforge.net/project/expat/"
download="https://downloads.sourceforge.net/project/expat/expat/$version/expat-$version.tar.bz2"
desc="C library for parsing XML"
requires="musl"

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

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

build() {
  ./configure \
    --prefix="" \
    --docdir="/share/doc/$app-$version" \
    --disable-static 

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
0fbd6e39cd318ed77363be0321e3f40002ac1c2e3f3f69c41de45afd94887d9ff6b0685f374649a50acd78eda8bfa8c52a98349f9845941790319d9fa5734088  expat-2.5.0.tar.lz
"
