summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO11
-rw-r--r--PKGBUILD28
2 files changed, 18 insertions, 21 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 831496ea6f30..d90934f57dc8 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = eiquadprog
pkgdesc = Quadratic Programing solver with eigen
- pkgver = 1.2.2
- pkgrel = 2
+ pkgver = 1.2.6
+ pkgrel = 1
url = https://github.com/stack-of-tasks/eiquadprog
arch = any
license = LGPL
@@ -10,13 +10,12 @@ pkgbase = eiquadprog
makedepends = boost-libs
makedepends = eigen
optdepends = doxygen
- source = https://github.com/stack-of-tasks/eiquadprog/releases/download/v1.2.2/eiquadprog-1.2.2.tar.gz
- source = https://github.com/stack-of-tasks/eiquadprog/releases/download/v1.2.2/eiquadprog-1.2.2.tar.gz.sig
+ source = https://github.com/stack-of-tasks/eiquadprog/releases/download/v1.2.6/eiquadprog-1.2.6.tar.gz
+ source = https://github.com/stack-of-tasks/eiquadprog/releases/download/v1.2.6/eiquadprog-1.2.6.tar.gz.sig
validpgpkeys = 9B1A79065D2F2B806C8A5A1C7D2ACDAF4653CF28
- sha256sums = SKIP
+ sha256sums = e4ac25a0236dd08f5d5f1890a33ca78a9c8a5808f7e34d0269d942fa9320036d
sha256sums = SKIP
pkgname = eiquadprog
pkgname = eiquadprog-docs
-
diff --git a/PKGBUILD b/PKGBUILD
index e7163a992110..d280f7e03c0b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,8 +3,8 @@
pkgorg='stack-of-tasks'
_pkgname='eiquadprog'
pkgname=("${_pkgname}" "${_pkgname}-docs")
-pkgver=1.2.2
-pkgrel=2
+pkgver=1.2.6
+pkgrel=1
pkgdesc="Quadratic Programing solver with eigen"
arch=('any')
url="https://github.com/${pkgorg}/${_pkgname}"
@@ -13,31 +13,29 @@ depends=()
optdepends=('doxygen')
makedepends=('cmake' 'boost' 'boost-libs' 'eigen')
source=($url/releases/download/v${pkgver}/${_pkgname}-${pkgver}.tar.gz{,.sig})
-sha256sums=('SKIP' 'SKIP')
+sha256sums=('e4ac25a0236dd08f5d5f1890a33ca78a9c8a5808f7e34d0269d942fa9320036d'
+ 'SKIP')
validpgpkeys=('9B1A79065D2F2B806C8A5A1C7D2ACDAF4653CF28')
build() {
- cd "${_pkgname}-${pkgver}"
-
- cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib .
- make
+ cmake -B "build-$pkgver" -S "$pkgbase-$pkgver" \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib
+ cmake --build "build-$pkgver"
}
check() {
- cd "${_pkgname}-${pkgver}"
- make test
+ cmake --build "build-$pkgver" -t test
}
package_eiquadprog() {
- cd "${_pkgname}-${pkgver}"
- make DESTDIR="${pkgdir}/" install
+ DESTDIR="$pkgdir/" cmake --build "build-$pkgver" -t install
rm -rf ${pkgdir}/usr/share/doc
- install -Dm644 COPYING.LESSER "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ install -Dm644 "${_pkgname}-${pkgver}/COPYING.LESSER" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
package_eiquadprog-docs() {
- cd "${_pkgname}-${pkgver}"
- make DESTDIR="${pkgdir}/" install
+ DESTDIR="$pkgdir/" cmake --build "build-$pkgver" -t install
rm -rf ${pkgdir}/usr/{lib,include,"share/$_pkgname"}
- install -Dm644 COPYING.LESSER "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ install -Dm644 "${_pkgname}-${pkgver}/COPYING.LESSER" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}