blob: 58dde98cb7f626503894e47265a34beb491ee065 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# Contributor: Andrew Bell <andrew.bell.ia@gmail.com>
# Maintainer: Andrew Bell <andrew.bell.ia@gmail.com>
pkgname=xerces-c
pkgver=3.2.2
pkgrel=4
pkgdesc="A validating XML parser written in a portable subset of C++"
url="https://xerces.apache.org/index.html"
arch="all"
license="Apache-2.0"
makedepends="cmake curl-dev icu-dev"
subpackages="$pkgname-samples $pkgname-doc $pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/apache/xerces-c/archive/v$pkgver.tar.gz"
build() {
mkdir build && cd build
local thread_support=-Dthreads:BOOL=ON
case "$CARCH" in
s390x) thread_support=-Dthreads:BOOL=OFF ;;
esac
cmake .. \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX="$pkgdir"/usr \
$thread_support \
-Dnetwork-accessor=curl \
-Dmessage-loader=icu \
-Dtranscoder=icu
cmake --build .
}
package() {
cd "$builddir"/build
cmake --build . --target install --config Release
}
samples() {
pkgdesc="$pkgdesc (compiled samples)"
mkdir -p $subpkgdir/usr
mv $pkgdir/usr/bin $subpkgdir/usr
}
check() {
cd "$builddir"/build
ctest
}
sha512sums="e4b2d3499fb4d1d1bcaf991ee858f352112683084b9cc7855c0e52e7fc8cc982a8e3cd548fa30718af6a6dee40e460d82ffcd3480a50f7e7516b462b2c2080c6 xerces-c-3.2.2.tar.gz"
|