blob: bb8b858cf6e1b70623e0f58c47c69b32535701f2 (
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Maintainer: x2b <psaoj.10.Toranaga-San@spamgourmet.com>
pkgname=trlib-git
_pkgname=trlib
pkgdesc="Trust Region Subproblem Solver Library "
arch=('x86_64' 'i686')
url="https://github.com/felixlen/trlib"
license=('MIT')
depends=('lapack' 'openblas')
makedepends=('git')
provides=('trlib')
#conflicts=('trlib')
options=()
source=(git+https://github.com/felixlen/trlib.git)
md5sums=('SKIP')
pkgver=r163.02921d1
pkgrel=1
pkgver() {
cd "${srcdir}/${_pkgname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "${srcdir}/${_pkgname}"
mkdir -p build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX:PATH=/usr
}
build() {
cd "${srcdir}/${_pkgname}"
cd build
make
}
package() {
cd "${srcdir}/${_pkgname}"
mkdir -p "${pkgdir}/usr/share/licenses/${pkgname}/"
cp LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/"
cd build
make DESTDIR="${pkgdir}" install
}
|