archrelease: copy trunk to community-x86_64
[ArchLinux/community.git] / lib32-expat / trunk / PKGBUILD
blob21c1ba9a4920a183ff0179cd87ef173b4cbc0929
1 # Maintainer: Maxime Gauduin <alucryd@archlinux.org>
2 # Maintainer: David Runge <dvzrv@archlinux.org>
3 # Contributor: Felix Yan <felixonmars@archlinux.org>
5 _name=expat
6 pkgname=lib32-expat
7 pkgver=2.5.0
8 pkgrel=2
9 pkgdesc='An XML Parser library'
10 arch=(x86_64)
11 url=https://libexpat.github.io/
12 license=(MIT)
13 depends=(
14   "expat=$pkgver"
15   lib32-glibc
17 makedepends=(cmake)
18 provides=(libexpat.so)
19 source=(https://github.com/libexpat/libexpat/releases/download/R_${pkgver//./_}/$_name-$pkgver.tar.bz2{,.asc})
20 sha512sums=('22fd904d75aab7506a85c03519b9cf79e44898c8e1ba6abf6cb7f95de71b8e63a7e2d5cf4395e3627d46035ea29342b3e631a8809fef8aad3f59976dc075ad17'
21             'SKIP')
22 b2sums=('15a5dcd3af17995fb4299301710b38d609c1fe7a8d6a6284581fedd96e89e0c16526d0342fb55773ac9d678cd65dc5cdb1532c764eeb3a20ccdf1e168b96e337'
23         'SKIP')
24 validpgpkeys=(3176EF7DB2367F1FCA4F306B1F9B0E909AF37285) # Sebastian Pipping
26 build() {
27   export CC='gcc -m32'
28   export CXX='c++ -m32'
29   export PKG_CONFIG=i686-pc-linux-gnu-pkg-config
31   cmake -DCMAKE_INSTALL_PREFIX=/usr \
32         -DCMAKE_INSTALL_LIBDIR=lib32 \
33         -DCMAKE_BUILD_TYPE=None \
34         -W no-dev \
35         -B build \
36         -S "${_name}-$pkgver"
37   make VERBOSE=1 -C build
40 check() {
41   make VERBOSE=1 -C build test
44 package() {
45   make VERBOSE=1 DESTDIR="$pkgdir" -C build install
46   install -vDm 644 $_name-$pkgver/COPYING -t "$pkgdir/usr/share/licenses/$pkgname/"
47   rm -rf "$pkgdir"/usr/{bin,include,share/man,share/doc}
50 # vim:set sw=2 sts=-1 et: