summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorxantares2015-06-08 21:43:49 +0200
committerxantares2015-06-08 21:43:49 +0200
commit34f28e363017a8d8a08e9a717a01ec6b606eaa0d (patch)
tree7f5d02ee5b7aea57f9375e515d407bf66520ced2
downloadaur-34f28e363017a8d8a08e9a717a01ec6b606eaa0d.tar.gz
Initial import
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD39
2 files changed, 58 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..4aa246a6cca
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = agrum
+ pkgdesc = C++ Bayesian networks library
+ pkgver = 0.9.1
+ pkgrel = 1
+ url = https://forge.lip6.fr/projects/aGrUM/wiki
+ arch = i686
+ arch = x86_64
+ license = GPL
+ makedepends = cmake
+ makedepends = cococpp
+ makedepends = swig
+ makedepends = python
+ depends = gcc-libs
+ optdepends = python: python bindings
+ source = agrum-0.9.1::git+git://forge.lip6.fr/aGrUM#tag=0.9.1
+ md5sums = SKIP
+
+pkgname = agrum
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..e3a6ea3205d
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,39 @@
+pkgname=agrum
+pkgver=0.9.1
+pkgrel=1
+pkgdesc="C++ Bayesian networks library"
+license=('GPL')
+arch=('i686' 'x86_64')
+url="https://forge.lip6.fr/projects/aGrUM/wiki"
+depends=('gcc-libs')
+optdepends=('python: python bindings')
+makedepends=('cmake' 'cococpp' 'swig' 'python')
+source=("agrum-${pkgver}::git+git://forge.lip6.fr/aGrUM#tag=${pkgver}")
+md5sums=('SKIP')
+
+prepare() {
+ cd "$srcdir/$pkgname-$pkgver"
+ sed -i "s|print sysconfig.get_python_lib(1,0,prefix='\${CMAKE_INSTALL_PREFIX}')|print(sysconfig.get_python_lib(1,0,prefix='\${CMAKE_INSTALL_PREFIX}'))|g" wrappers/pyAgrum/CMakeLists.txt
+
+ # see 6b89d669e8f5086f4de6ad8a4e34385080073b26
+ sed -i "s|<< traceFileName <<|<< traceFileName.str() <<|g" src/agrum/FMDP/planning/SPUDDPlanning.tcc
+}
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+ mkdir -p build && pushd build
+ cmake -DCMAKE_INSTALL_PREFIX=/usr ../src
+ make
+ popd
+ mkdir -p build_py && pushd build_py
+ cmake -DCMAKE_INSTALL_PREFIX=/usr ../wrappers/pyAgrum
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver/build"
+ make DESTDIR="$pkgdir" install
+ cd "$srcdir/$pkgname-$pkgver/build_py"
+ make DESTDIR="$pkgdir" install
+}
+