Commit 231f7cf8 authored by Holger Jaekel's avatar Holger Jaekel Committed by Leo

testing/xerces-c: enable on all platforms

parent 15e88811
......@@ -2,33 +2,44 @@
# Maintainer: Andrew Bell <andrew.bell.ia@gmail.com>
pkgname=xerces-c
pkgver=3.2.2
pkgrel=1
pkgrel=2
pkgdesc="A validating XML parser written in a portable subset of C++"
url="https://xerces.apache.org/index.html"
arch="x86 x86_64"
arch="all"
license="Apache-2.0"
makedepends="
cmake
linux-headers
"
cmake
curl-dev
icu-dev
"
subpackages="$pkgname-samples $pkgname-doc $pkgname-dev"
_pkgver=${pkgver//./_}
_srcname="Xerces-C_${_pkgver}"
source="https://github.com/apache/xerces-c/archive/${_srcname}.tar.gz"
_srcname="Xerces-C_$_pkgver"
source="https://github.com/apache/xerces-c/archive/$_srcname.tar.gz"
builddir="$srcdir/$pkgname-$_srcname"
build() {
mkdir build && cd build
cmake .. \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_BUILD_TYPE=Release
make
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=Release \
-DCMAKE_INSTALL_PREFIX="$pkgdir"/usr \
$thread_support \
-Dnetwork-accessor=curl \
-Dmessage-loader=icu \
-Dtranscoder=icu
cmake --build .
}
package() {
cd "$builddir"/build
make DESTDIR="$pkgdir" install
cd "$builddir"/build
cmake --build . --target install --config Release
}
samples() {
......@@ -39,7 +50,7 @@ samples() {
}
check() {
cd "$builddir"/build
make test
cd "$builddir"/build
ctest
}
sha512sums="66f60fe9194376ac0ca99d13ea5bce23ada86e0261dde30686c21ceb5499e754dab8eb0a98adadd83522bda62709377715501f6dac49763e3a686f9171cc63ea Xerces-C_3_2_2.tar.gz"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment