testing/uarmsolver: new aport

This commit is contained in:
firefly-cpp 2022-03-08 15:11:51 +01:00 committed by alice
parent 8c6bc916ff
commit 283f5f233d
2 changed files with 66 additions and 0 deletions

View File

@ -0,0 +1,32 @@
# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
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
"

View File

@ -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 {