summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuilhem Saurel2020-03-11 12:13:46 +0100
committerGuilhem Saurel2020-03-11 12:13:46 +0100
commit7e620575a6e8a5fdbf04f1684f2b0f6bbd515018 (patch)
tree306b7a94d0c398aa70bee10788c22432f92fbf33
downloadaur-7e620575a6e8a5fdbf04f1684f2b0f6bbd515018.tar.gz
init
-rw-r--r--.SRCINFO22
-rw-r--r--.gitignore3
-rw-r--r--PKGBUILD43
3 files changed, 68 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..6cef404de95
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,22 @@
+pkgbase = eiquadprog
+ pkgdesc = Quadratic Programing solver with eigen
+ pkgver = 1.1.1
+ pkgrel = 1
+ url = https://github.com/stack-of-tasks/eiquadprog
+ arch = any
+ license = LGPL
+ makedepends = cmake
+ makedepends = boost
+ makedepends = boost-libs
+ makedepends = eigen
+ optdepends = doxygen
+ source = https://github.com/stack-of-tasks/eiquadprog/releases/download/v1.1.1/eiquadprog-1.1.1.tar.gz
+ source = https://github.com/stack-of-tasks/eiquadprog/releases/download/v1.1.1/eiquadprog-1.1.1.tar.gz.sig
+ validpgpkeys = 9B1A79065D2F2B806C8A5A1C7D2ACDAF4653CF28
+ sha256sums = SKIP
+ sha256sums = SKIP
+
+pkgname = eiquadprog
+
+pkgname = eiquadprog-docs
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..4abef26f86e
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,3 @@
+pkg
+src
+eiquadprog*
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..0b6e458d191
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,43 @@
+# Maintainer: Guilhem Saurel <saurel@laas.fr>
+
+pkgorg='stack-of-tasks'
+_pkgname=eiquadprog
+pkgname=(${_pkgname} ${_pkgname}-docs)
+pkgver=1.1.1
+pkgrel=1
+pkgdesc="Quadratic Programing solver with eigen"
+arch=('any')
+url="https://github.com/${pkgorg}/${_pkgname}"
+license=('LGPL')
+depends=()
+optdepends=('doxygen')
+makedepends=('cmake' 'boost' 'boost-libs' 'eigen')
+source=($url/releases/download/v${pkgver}/${_pkgname}-${pkgver}.tar.gz{,.sig})
+sha256sums=('SKIP' 'SKIP')
+validpgpkeys=('9B1A79065D2F2B806C8A5A1C7D2ACDAF4653CF28')
+
+build() {
+ cd "${_pkgname}-${pkgver}"
+
+ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib .
+ make
+}
+
+check() {
+ cd "${_pkgname}-${pkgver}"
+ make test
+}
+
+package_eiquadprog() {
+ cd "${_pkgname}-${pkgver}"
+ make DESTDIR="${pkgdir}/" install
+ rm -rf ${pkgdir}/usr/share/doc
+ install -Dm644 COPYING.LESSER "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_eiquadprog-docs() {
+ cd "${_pkgname}-${pkgver}"
+ make DESTDIR="${pkgdir}/" install
+ rm -rf ${pkgdir}/usr/{lib,include}
+ install -Dm644 COPYING.LESSER "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}