summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 91af7b330e6588e0d11c03fd6037c9665d6eb58e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Maintainer: acxz <akashpatel2008 at yahoo dot com>
pkgname=hpipm-git
pkgver=r1325.b140f36
pkgrel=1
pkgdesc="High-performance interior-point-method QP solvers"
url='https://github.com/giaf/hpipm'
arch=('i686' 'x86_64')
license=('BSD 2-Clause')
makedepends=('cmake' 'git')
depends=('blasfeo')
provides=('hpipm')
conflicts=('hpipm')
_pkgname=hpipm
source=("${_pkgname}::git+https://github.com/giaf/hpipm")
sha256sums=('SKIP')

pkgver() {
  cd "${_pkgname}"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  mkdir -p ${srcdir}/${_pkgname}/build
  cd ${srcdir}/${_pkgname}/build

  cmake .. \
    -DCMAKE_INSTALL_PREFIX="/usr" \
    -DHPIPM_TESTING=OFF \
    -DCMAKE_BUILD_TYPE="Release"

  make
}

package() {
  cd "${srcdir}/${_pkgname}/build"
  make DESTDIR="${pkgdir}/" install
}