archrelease: copy trunk to extra-x86_64
[arch-packages.git] / expat / trunk / PKGBUILD
blob09393a54a0e37cb205f74c2caa213504246bf386
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.8
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=('46cc9d725f359b77681a2875bfefa15ceee50eb9513f6577607c0c5833dfa4241565c74f26b84b38d802c3cd8c32f00204fd74272bcecbd21229425764eef86c'
19             'SKIP')
20 b2sums=('a829bd94d2cc9b305874ae2539dd4388ea99eaed21d2da17bbd99a1e7735b0f7cb910d096f72c71b128dcb8ffdff9021109e7ff5e562d8cefad228fd8d66f897'
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}/"