summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authoracxz2020-03-17 03:15:19 -0400
committeracxz2020-03-17 03:15:19 -0400
commit6f24d1264c939e8774ef8c42d2ccaf0aee9e90fc (patch)
treea733f0f3b0004f70651c05de9836108b98d03dcf
downloadaur-control-toolbox-core.tar.gz
create control-toolbox-core package
-rw-r--r--.SRCINFO24
-rw-r--r--PKGBUILD36
2 files changed, 60 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..00be0a68f2f
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,24 @@
+pkgbase = control-toolbox-core
+ pkgdesc = The Control Toolbox - Core Components
+ pkgver = 3.0.2
+ pkgrel = 1
+ url = https://github.com/ethz-adrl/control-toolbox
+ arch = i686
+ arch = x86_64
+ license = BSD-2-Clause
+ makedepends = cmake
+ depends = lapack
+ depends = eigen
+ depends = boost
+ depends = openmp
+ depends = kindr
+ depends = matplotlib-cpp
+ optdepends = hpipm
+ optdepends = coin-or-ipopt
+ optdepends = cppad
+ optdepends = cppadcodegen
+ source = control-toolbox-core-3.0.2::https://github.com/ethz-adrl/control-toolbox/archive/3.0.2.tar.gz
+ sha256sums = 086b33946d27ab64726536f0b0185c72a3ebb51e0a360f537126e3e57c499844
+
+pkgname = control-toolbox-core
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..b7380b82f01
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,36 @@
+# Maintainer: acxz <akashpatel2008 at yahoo dot com>
+
+pkgname=control-toolbox-core
+pkgver=3.0.2
+pkgrel=1
+pkgdesc="The Control Toolbox - Core Components"
+arch=('i686' 'x86_64')
+url="https://github.com/ethz-adrl/control-toolbox"
+license=('BSD-2-Clause')
+makedepends=(cmake)
+depends=(lapack eigen boost openmp kindr matplotlib-cpp)
+optdepends=(hpipm coin-or-ipopt cppad cppadcodegen)
+source=("${pkgname}-${pkgver}::https://github.com/ethz-adrl/control-toolbox/archive/${pkgver}.tar.gz")
+sha256sums=('086b33946d27ab64726536f0b0185c72a3ebb51e0a360f537126e3e57c499844')
+
+_pkgname=control-toolbox
+
+build() {
+
+ mkdir -p "${srcdir}/${_pkgname}-${pkgver}/ct_core/build"
+ cd "${srcdir}/${_pkgname}-${pkgver}/ct_core/build"
+ cmake -DCMAKE_BUILD_TYPE="Release" \
+ -DCMAKE_INSTALL_PREFIX="/usr" \
+ ..
+ make
+
+ # Clean up some build artificats
+ sed -i '/WRITE/d' ${srcdir}/${_pkgname}-${pkgver}/ct_core/build/cmake_install.cmake
+ sed -i '$d' ${srcdir}/${_pkgname}-${pkgver}/ct_core/build/cmake_install.cmake
+
+}
+
+package() {
+ cd "${srcdir}/${_pkgname}-${pkgver}/ct_core/build"
+ make DESTDIR="${pkgdir}/" install
+}