# Maintainer: Daryl Ronningen pkgname=expat pkgver=2.5.0 pkgrel=1 pkgdesc="An XML parser library" arch=(x86_64) url="https://libexpat.github.io/" license=(MIT) makedepends=(cmake) source=(https://github.com/libexpat/libexpat/releases/download/R_${pkgver//./_}/$pkgname-$pkgver.tar.bz2) sha512sums=('22fd904d75aab7506a85c03519b9cf79e44898c8e1ba6abf6cb7f95de71b8e63a7e2d5cf4395e3627d46035ea29342b3e631a8809fef8aad3f59976dc075ad17') build() { cmake -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=None \ -W no-dev \ -B build \ -S $pkgname-$pkgver make VERBOSE=1 -C build } package() { make VERBOSE=1 DESTDIR="$pkgdir" -C build install mkdir $pkgdir/usr/lib mv $pkgdir/usr/lib64/* $pkgdir/usr/lib/ rm -rf $pkgdir/usr/lib64 install -vDm 644 $pkgname-$pkgver/COPYING -t "$pkgdir/usr/share/licenses/$pkgname/" install -vDm 644 $pkgname-$pkgver/{AUTHORS,Changes,README.md} -t "$pkgdir/usr/share/doc/$pkgname/" }