# Description: A fast, non-validating, stream-oriented XML parsing library
# URL: https://libexpat.github.io/
# Maintainer: CRUX System Team, core-ports at crux dot nu

name=expat
version=2.8.1
release=1
source=(https://github.com/libexpat/libexpat/releases/download/R_${version//./_}/$name-$version.tar.xz)

build() {
    cd $name-$version

    ./configure --prefix=/usr

    make
    make DESTDIR=$PKG install
    install -D -m 0644 doc/xmlwf.1 $PKG/usr/share/man/man1/xmlwf.1

    rm -r $PKG/usr/{lib/cmake,share/doc}
}
