aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorAndrew Bell <andrew.bell.ia@gmail.com>2019-04-10 16:59:13 -0400
committerKevin Daudt <kdaudt@alpinelinux.org>2019-04-11 15:59:58 +0000
commitea906812678b0c23c648ba7ff3ff06765cb7014b (patch)
tree13820c79e57bdea966e9385ab1e3a55d3121a62c /testing
parent1b2bbd8c854351a63159ca7d8e9e9e08829538dd (diff)
downloadaports-ea906812678b0c23c648ba7ff3ff06765cb7014b.tar.bz2
aports-ea906812678b0c23c648ba7ff3ff06765cb7014b.tar.xz
testing/xerces-c: new aport
Diffstat (limited to 'testing')
-rw-r--r--testing/xerces-c/APKBUILD40
1 files changed, 40 insertions, 0 deletions
diff --git a/testing/xerces-c/APKBUILD b/testing/xerces-c/APKBUILD
new file mode 100644
index 0000000000..01c0b30d96
--- /dev/null
+++ b/testing/xerces-c/APKBUILD
@@ -0,0 +1,40 @@
+# Contributor: Andrew Bell <andrew.bell.ia@gmail.com>
+# Maintainer: Andrew Bell <andrew.bell.ia@gmail.com>
+pkgname=xerces-c
+pkgver=3.2.2
+pkgrel=0
+pkgdesc="A validating XML parser written in a portable subset of C++."
+url="https://xerces.apache.org/index.html"
+arch="x86 x86_64"
+license="Apache-2.0"
+makedepends="
+ cmake
+ linux-headers
+ "
+subpackages="$pkgname-doc"
+_pkgver=${pkgver//./_}
+_srcname="Xerces-C_${_pkgver}"
+source="https://github.com/apache/xerces-c/archive/${_srcname}.tar.gz"
+builddir="$srcdir/$pkgname-$_srcname"
+
+build() {
+ cd "$builddir"
+
+ mkdir build && cd build
+ cmake .. \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DCMAKE_BUILD_TYPE=Release
+ make
+}
+
+package() {
+ cd "$builddir"/build
+ make DESTDIR="$pkgdir" install
+}
+
+check() {
+ cd "$builddir"/build
+ make test
+}
+sha512sums="66f60fe9194376ac0ca99d13ea5bce23ada86e0261dde30686c21ceb5499e754dab8eb0a98adadd83522bda62709377715501f6dac49763e3a686f9171cc63ea Xerces-C_3_2_2.tar.gz"