pkgname=expat pkgver=2.6.4 pkgrel=1 pkgdesc="An XML parser library" arch=('x86_64') url="https://libexpat.github.io/" license=('MIT') depends=('glibc') source=(https://github.com/libexpat/libexpat/releases/download/R_${pkgver//./_}/${pkgname}-${pkgver}.tar.xz) sha256sums=(a695629dae047055b37d50a0ff4776d1d45d0a4c842cf4ccee158441f55ff7ee) build() { cd ${pkgname}-${pkgver} local configure_args=( --disable-static --docdir=/usr/share/doc/${pkgname}-${pkgver} ${configure_options} ) ./configure ${configure_args[@]} make } package() { cd ${pkgname}-${pkgver} make DESTDIR=${pkgdir} install install -v -m644 doc/*.{html,css} ${pkgdir}/usr/share/doc/${pkgname}-${pkgver} }