Commit bff9ee48 authored by Leo's avatar Leo

community/xerces-c: upgrade to 3.2.3

parent da145114
# Contributor: Andrew Bell <andrew.bell.ia@gmail.com>
# Maintainer: Andrew Bell <andrew.bell.ia@gmail.com>
pkgname=xerces-c
pkgver=3.2.2
pkgrel=6
pkgver=3.2.3
pkgrel=0
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"
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 .. \
cmake -B build \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_BUILD_TYPE=None \
......@@ -26,13 +24,18 @@ build() {
$thread_support \
-Dnetwork-accessor=curl \
-Dmessage-loader=icu \
-Dtranscoder=icu
cmake --build .
-Dtranscoder=icu \
. $CMAKE_CROSSOPTS
make -C build
}
check() {
cd build
ctest
}
package() {
cd "$builddir"/build
cmake --build . --target install --config Release
make -C build install DESTDIR="$pkgdir"
}
samples() {
......@@ -42,9 +45,4 @@ samples() {
mv $pkgdir/usr/bin $subpkgdir/usr
}
check() {
cd "$builddir"/build
ctest
}
sha512sums="e4b2d3499fb4d1d1bcaf991ee858f352112683084b9cc7855c0e52e7fc8cc982a8e3cd548fa30718af6a6dee40e460d82ffcd3480a50f7e7516b462b2c2080c6 xerces-c-3.2.2.tar.gz"
sha512sums="aaafe2de4ea156d94e71e3631c79bd66660badf17bf2a19587a0ca34011f70bd1584a0beef909409a3ff05eecea9d37ffee6dbb267625f59217fd86705d2cd28 xerces-c-3.2.3.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