# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org>
pkgname=pugixml
pkgver=1.14
pkgrel=0
pkgdesc="Light-weight, simple and fast XML parser for C++ with XPath support"
options="!check" # No testsuite
url="https://pugixml.org"
arch="all"
license="MIT"
makedepends="cmake"
subpackages="$pkgname-dev"
source="https://github.com/zeux/pugixml/releases/download/v$pkgver/pugixml-$pkgver.tar.gz"

build() {
	cmake -B build \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DBUILD_SHARED_LIBS=True \
		-DCMAKE_BUILD_TYPE=None
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
e94e3ea2bdfbe494343f1f5f54057ad3af1b3e0d76b6283051bf020ff64dd9975aa8782d7c34d8bfb42aabcb496e534130c3f9ee127da121cf390473d41e8c4d  pugixml-1.14.tar.gz
"
