archrelease: copy trunk to extra-x86_64
[arch-packages.git] / expat / trunk / PKGBUILD
blobb7f91cd6b835a66055b105c0e730dad44a2929a3
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.7
8 pkgrel=1
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=('313bbee4c941d56aa1a0c0d0f4a2c9f9ada8df734bc905fd9d616199ab980b460485870bf3c7fd1605334f782a0c16e9c2960a96cdceb444a7af9b2e3e748515'
19             'SKIP')
20 b2sums=('4c5d146a36b127cc43edc14f60e905a7f0ada1954d13e1991bea2df1e84a76481b455cddc3960bab8ce39fe07fb3373d9764b76d7bd33204ab8127824816d6b2'
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}/"