* update libkolabxml to 1.2.1-4
This commit is contained in:
parent
38e4a109b5
commit
07a67716ad
@ -4,18 +4,25 @@
|
||||
|
||||
pkgname=libkolabxml
|
||||
pkgver=1.2.1
|
||||
pkgrel=3
|
||||
pkgrel=4
|
||||
pkgdesc="Kolab XML Format Schema Definitions Library"
|
||||
url='https://www.kolab.org/'
|
||||
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
|
||||
license=('GPL')
|
||||
depends=('xerces-c' 'boost-libs')
|
||||
makedepends=('cmake' 'boost' 'xsd' 'swig')
|
||||
source=(https://cgit.kolab.org/libkolabxml/snapshot/libkolabxml-libkolabxml-$pkgver.tar.gz)
|
||||
sha512sums=('a4967d84b57d4c637dcc36383f05dbb20fe2ba5e590235eac219ece33e15d29f5eb51e9501a4f9e277900fdec18ddd390e6dc564bf79663bb3513de07f04d39a')
|
||||
makedepends=('cmake' 'boost' 'libxsd' 'xsd' 'swig' 'git')
|
||||
_commit=af7c22e7ad2bf47387d00f030c1da41c292f2bee
|
||||
source=(git+https://git.kolab.org/diffusion/LKX#commit=$_commit
|
||||
xsd-4.2.patch)
|
||||
sha512sums=('SKIP'
|
||||
'a7febec03ccaa99f22e10fad604c66c12d35dd91f2a01287f4c96a2037237d86ee4f918aaa5b2857fce6fdf5482f7ad6bf36bec9c96473c4a711c7605448d868')
|
||||
|
||||
prepare() {
|
||||
patch -d LKX -p1 < xsd-4.2.patch # Fix build with XSD 4.2
|
||||
}
|
||||
|
||||
build() {
|
||||
cmake -B build -S $pkgname-$pkgname-$pkgver \
|
||||
cmake -B build -S LKX \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DBUILD_TESTS=OFF \
|
||||
-DBoost_NO_BOOST_CMAKE=ON
|
||||
|
13
libkolabxml/xsd-4.2.patch
Normal file
13
libkolabxml/xsd-4.2.patch
Normal file
@ -0,0 +1,13 @@
|
||||
diff --git a/src/shared_conversions.h b/src/shared_conversions.h
|
||||
index 5fee33e..d6f423a 100644
|
||||
--- a/src/shared_conversions.h
|
||||
+++ b/src/shared_conversions.h
|
||||
@@ -29,7 +29,7 @@ namespace Kolab {
|
||||
typedef boost::shared_ptr<cDateTime> cDateTimePtr;
|
||||
|
||||
typedef ::xsd::cxx::tree::type type;
|
||||
-#if (XSD_INT_VERSION >= 4000000L)
|
||||
+#if (LIBXSD_VERSION >= 4000000L)
|
||||
typedef ::xsd::cxx::tree::simple_type< char, type > simple_type;
|
||||
#else
|
||||
typedef ::xsd::cxx::tree::simple_type< type > simple_type;
|
Loading…
x
Reference in New Issue
Block a user