summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3b2e12a48b339288004e4b88b134d312add13318 (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
# Maintainer: acxz <akashpatel2008 at yahoo dot com>
pkgname=qdldl
pkgver=0.1.6
pkgrel=1
pkgdesc="A free LDL factorisation routine"
url="https://github.com/oxfordcontrol/qdldl"
arch=(x86_64)
license=('Apache-2.0')
makedepends=(cmake gcc)
depends=()
source=("https://github.com/oxfordcontrol/qdldl/archive/v$pkgver.tar.gz")
sha256sums=("aeb1b2d76849c13e9803760a4c2e26194bf80dcc9614ae25ca6bcc404dc70d65")

build() {
  mkdir -p "$srcdir/${pkgname}-${pkgver}/build"
  cd "$srcdir/${pkgname}-${pkgver}/build"
  cmake -DCMAKE_BUILD_TYPE=Release \
        -DCMAKE_INSTALL_PREFIX="$pkgdir/usr" \
        ..
  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}/build"
  make DESDIR=${pkgdir} install
}