diff --git a/testing/uarmsolver/APKBUILD b/testing/uarmsolver/APKBUILD new file mode 100644 index 00000000000..fb04a657709 --- /dev/null +++ b/testing/uarmsolver/APKBUILD @@ -0,0 +1,32 @@ +# Contributor: Iztok Fister, Jr. +# Maintainer: Iztok Fister, Jr. +pkgname=uarmsolver +_pkgorig=uARMSolver +pkgver=0.2.3 +pkgrel=0 +pkgdesc="Universal Association Rule Mining Solver" +url="https://github.com/firefly-cpp/uARMSolver" +arch="all" +license="MIT" +makedepends="cmake samurai" +source="$pkgname-$pkgver.tar.gz::https://github.com/firefly-cpp/$_pkgorig/archive/$pkgver/$_pkgorig-$pkgver.tar.gz + fix-uint.patch + " +builddir="$srcdir/$_pkgorig-$pkgver" +options="!check" # no tests + +build() { + cmake -B build -G Ninja \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr + cmake --build build +} + +package() { + install -Dm755 build/uARMSolver -t "$pkgdir"/usr/bin +} + +sha512sums=" +bc7a56949b2dc8bbac6c4d07d195856218de491e87f8f0349619a1d71341c607cf2c467035e4891e16de15b3b2d78c3cd29690d50cafd388c78d3dc7eecae9ae uarmsolver-0.2.3.tar.gz +e505a474ac2f0b002685d412fbdfbb8cb62fd88c474816e2e9ecdcd5d60bd4ee2069eb390fecaa273d69291d6f8258a124d6c69e9d30a9702d09bd3efed5431b fix-uint.patch +" diff --git a/testing/uarmsolver/fix-uint.patch b/testing/uarmsolver/fix-uint.patch new file mode 100644 index 00000000000..7410b496a82 --- /dev/null +++ b/testing/uarmsolver/fix-uint.patch @@ -0,0 +1,34 @@ +--- a/sources/Problem.h ++++ b/sources/Problem.h +@@ -18,6 +18,8 @@ + #include "Rule.h" + #include "Setup.h" + ++#define uint unsigned int ++ + + using namespace std; + +--- a/sources/Setup.h ++++ b/sources/Setup.h +@@ -19,6 +19,8 @@ + #define VISUAL_FLOW 1 + #define VISUAL_METRO 2 + ++#define uint unsigned int ++ + using namespace std; + + // algorithm's setups +--- a/sources/Feature.h ++++ b/sources/Feature.h +@@ -5,6 +5,8 @@ + + #include "Attribute.h" + ++#define uint unsigned int ++ + using namespace std; + + typedef struct { +