blob: 61e956d08ac7a76ae0c27d62c511db7b77a8e937 (
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
|
# Maintainer: x2b <psaoj.10.Toranaga-San@spamgourmet.com>
pkgname=highs-git
pkgrel=1
pkgdesc="Linear optimization software (Git version)"
arch=('i686' 'x86_64')
pkgver=r8589.624bc58d3
_pkgname=HiGHS
url="https://github.com/ERGO-Code/HiGHS"
license=('MIT')
depends=('gcc-libs' 'zlib')
makedepends=('cmake' 'git')
provides=('highs')
conflicts=('highs')
source=("git+https://github.com/ERGO-Code/HiGHS.git")
sha1sums=('SKIP')
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_EXE_LINKER_FLAGS=$LDFLAGS \
-DCMAKE_SHARED_LINKER_FLAGS=$LDFLAGS \
-DCMAKE_INSTALL_PREFIX=/usr \
..
}
build() {
cd "$srcdir/${_pkgname}/build"
make
}
check() {
cd "$srcdir/${_pkgname}/build"
make test
}
package() {
cd "$srcdir/${_pkgname}/build"
make DESTDIR="$pkgdir/" install
cd "$srcdir/${_pkgname}"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|