1 # Maintainer: David Runge <dvzrv@archlinux.org>
2 # Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
3 # Contributor: Allan McRae <allan@archlinux.org>
4 # Contributor: Judd Vinet <jvinet@zeroflux.org>
9 pkgdesc="An XML parser library"
11 url="https://libexpat.github.io/"
15 provides=(libexpat.so)
17 source=("https://github.com/libexpat/libexpat/releases/download/R_${pkgver//./_}/${pkgname}-${pkgver}.tar.bz2"{,.asc})
18 sha512sums=('313bbee4c941d56aa1a0c0d0f4a2c9f9ada8df734bc905fd9d616199ab980b460485870bf3c7fd1605334f782a0c16e9c2960a96cdceb444a7af9b2e3e748515'
20 b2sums=('4c5d146a36b127cc43edc14f60e905a7f0ada1954d13e1991bea2df1e84a76481b455cddc3960bab8ce39fe07fb3373d9764b76d7bd33204ab8127824816d6b2'
22 validpgpkeys=(3176EF7DB2367F1FCA4F306B1F9B0E909AF37285) # Sebastian Pipping
25 cmake -DCMAKE_INSTALL_PREFIX=/usr \
26 -DCMAKE_BUILD_TYPE=None \
30 make VERBOSE=1 -C build
34 make VERBOSE=1 -C build test
38 make VERBOSE=1 DESTDIR="$pkgdir" -C build install
39 install -vDm 644 "$pkgname-$pkgver/COPYING" -t "${pkgdir}/usr/share/licenses/$pkgname/"
40 install -vDm 644 "$pkgname-$pkgver/"{AUTHORS,Changes,README.md} -t "${pkgdir}/usr/share/doc/${pkgname}/"