summaryrefslogtreecommitdiff
path: root/user/glpk/APKBUILD
blob: d3261d526be67f1a1e9e3cb937f07a1d6754a410 (plain) (blame)
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
# Contributor: Zach van Rijn <me@zv.io>
# Maintainer: Zach van Rijn <me@zv.io>
pkgname=glpk
pkgver=5.0
pkgrel=0
pkgdesc="Multiple-precision floating-point library"
url="https://www.gnu.org/software/glpk/"
arch="all"
license="GPL-3.0+"
depends=""
makedepends="gmp-dev"
subpackages="$pkgname-dev"
source="https://ftp.gnu.org/gnu/glpk/${pkgname}-${pkgver}.tar.gz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--with-gmp
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="4e92195fa058c707146f2690f3a38b46c33add948c852f67659ca005a6aa980bbf97be96528b0f8391690facb880ac2126cd60198c6c175e7f3f06cca7e29f9d  glpk-5.0.tar.gz"