archrelease: copy trunk to extra-x86_64
[arch-packages.git] / expat / repos / community-x86_64 / PKGBUILD
blob07834627950adfbda5674597bf2e145f7135537a
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>
6 pkgname=expat
7 pkgver=2.4.5
8 pkgrel=2
9 pkgdesc="An XML parser library"
10 arch=(x86_64)
11 url="https://libexpat.github.io/"
12 license=(MIT)
13 depends=(glibc)
14 makedepends=(cmake)
15 provides=(libexpat.so)
16 options=(debug)
17 source=("https://github.com/libexpat/libexpat/releases/download/R_${pkgver//./_}/${pkgname}-${pkgver}.tar.bz2"{,.asc})
18 sha512sums=('904c0631689f2a4092a544959d8b917b34563762075e49a7b7aa40533bfd7d89b46113d1a58477c2bc3a0abf9b68408b43ac13e82da01f79ac79466bcf2edbf9'
19             'SKIP')
20 b2sums=('51c039e300972e8097484163227f9a48e822949846e5b34652ba848a8c142349c34f33f75461a44eeec9a0d68a69a79134410b661a2f50576c9fca387cfc26d6'
21         'SKIP')
22 validpgpkeys=(3176EF7DB2367F1FCA4F306B1F9B0E909AF37285) # Sebastian Pipping
24 build() {
25   cmake -DCMAKE_INSTALL_PREFIX=/usr \
26         -DCMAKE_BUILD_TYPE=None \
27         -W no-dev \
28         -B build \
29         -S "$pkgname-$pkgver"
30   make VERBOSE=1 -C build
33 check() {
34   make VERBOSE=1 -C build test
37 package() {
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}/"