archrelease: copy trunk to extra-x86_64
[arch-packages.git] / expat / trunk / PKGBUILD
blobfae6235f15ea3701e8ab43c6c4a645a8c7ca6b9a
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.5.0
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 source=(https://github.com/libexpat/libexpat/releases/download/R_${pkgver//./_}/$pkgname-$pkgver.tar.bz2{,.asc})
17 sha512sums=('22fd904d75aab7506a85c03519b9cf79e44898c8e1ba6abf6cb7f95de71b8e63a7e2d5cf4395e3627d46035ea29342b3e631a8809fef8aad3f59976dc075ad17'
18             'SKIP')
19 b2sums=('15a5dcd3af17995fb4299301710b38d609c1fe7a8d6a6284581fedd96e89e0c16526d0342fb55773ac9d678cd65dc5cdb1532c764eeb3a20ccdf1e168b96e337'
20         'SKIP')
21 validpgpkeys=(3176EF7DB2367F1FCA4F306B1F9B0E909AF37285) # Sebastian Pipping
23 build() {
24   cmake -DCMAKE_INSTALL_PREFIX=/usr \
25         -DCMAKE_BUILD_TYPE=None \
26         -W no-dev \
27         -B build \
28         -S $pkgname-$pkgver
29   make VERBOSE=1 -C build
32 check() {
33   make VERBOSE=1 -C build test
36 package() {
37   make VERBOSE=1 DESTDIR="$pkgdir" -C build install
38   install -vDm 644 $pkgname-$pkgver/COPYING -t "$pkgdir/usr/share/licenses/$pkgname/"
39   install -vDm 644 $pkgname-$pkgver/{AUTHORS,Changes,README.md} -t "$pkgdir/usr/share/doc/$pkgname/"