aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testing/rmlmapper/APKBUILD34
-rw-r--r--testing/rmlmapper/rmlmapper.sh3
2 files changed, 37 insertions, 0 deletions
diff --git a/testing/rmlmapper/APKBUILD b/testing/rmlmapper/APKBUILD
new file mode 100644
index 0000000000..850b57c2f9
--- /dev/null
+++ b/testing/rmlmapper/APKBUILD
@@ -0,0 +1,34 @@
+# Contributor: Dylan Van Assche <me@dylanvanassche.be>
+# Maintainer: Dylan Van Assche <me@dylanvanassche.be>
+pkgname=rmlmapper
+pkgver=4.13.0
+pkgrel=0
+pkgdesc="Generate RDF from (semi-)structured data sources with RML rules."
+url="https://github.com/RMLio/rmlmapper-java"
+# mips64 and riscv64 blocked by java-jdk
+arch="all !mips64 !riscv64"
+options="!check" # testsuite needs proprietary Oracle DB jar
+license="MIT"
+depends="java-jre-headless"
+makedepends="maven java-jdk"
+source="
+ $pkgname-$pkgver.tar.gz::https://github.com/RMLio/rmlmapper-java/archive/refs/tags/v$pkgver.tar.gz
+ rmlmapper.sh
+ "
+builddir="$pkgname-java-$pkgver"
+
+build() {
+ mvn install -DskipTests=true -Dmaven.buildNumber.skip=true
+}
+
+package() {
+ install -Dm644 "$srcdir/$pkgname-java-$pkgver/target/$pkgname-$pkgver-"*-all.jar \
+ "$pkgdir"/usr/share/java/$pkgname.jar
+ install -Dm755 "$srcdir"/rmlmapper.sh \
+ "$pkgdir"/usr/bin/rmlmapper
+}
+
+sha512sums="
+ee29a8bacef83273b375a5d1a1d35cefb534afcd898bdd1cf1eba317a431722e4292315d7c3928282af91cf3d06d8ea86af927ff87b7dedda4cb634e7307be71 rmlmapper-4.13.0.tar.gz
+3c8033a4b5adffb1c15cac1e626a293f1727bf91f5dac649237805eecb74eb9d52193f29f0597c2ae888d841a75a5b30fca8bab6f78c6f645ef40c3c0f452c38 rmlmapper.sh
+"
diff --git a/testing/rmlmapper/rmlmapper.sh b/testing/rmlmapper/rmlmapper.sh
new file mode 100644
index 0000000000..10ed3fadcf
--- /dev/null
+++ b/testing/rmlmapper/rmlmapper.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+java -jar /usr/share/java/rmlmapper.jar $@