summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cde6b535a972ccd99277b9fffb26997193ff7483 (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: x2b <psaoj.10.Toranaga-San@spamgourmet.com>

pkgname=adol-c-git
_pkgname=ADOL-C
pkgver=r565.e1fe4761
pkgrel=1
pkgdesc="ADOL-C automatic differentiation library"
arch=("x86_64")
url="https://github.com/coin-or/ADOL-C"
license=('EPL')
depends=("colpack" "boost-libs")
makedepends=("git")
provides=("adol-c")
conflicts=("adol-c")
source=("git+https://github.com/coin-or/ADOL-C")
sha1sums=("SKIP")

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

build() {
	cd "${srcdir}/${_pkgname}"
	./configure --prefix=/usr --libdir=/usr/lib
	make
}

check() {
	cd "${srcdir}/${_pkgname}"
	make -k check
}

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