archrelease: copy trunk to extra-x86_64
[arch-packages.git] / glpk / trunk / PKGBUILD
blob9b5dbe5524f6293d8f32975ad7b76e31c6b511fe
1 # Maintainer: Antonio Rojas <arojas@archlinux.org>
2 # Ronald van Haren <ronald.archlinux.org>
3 # Contributor: bzklrm <bzklrm@gmail.com>
4 # Additional contributors Senjin, Xavier, dundee
6 pkgname=glpk
7 pkgver=5.0
8 pkgrel=2
9 pkgdesc='GNU Linear Programming Kit: solve LP, MIP and other problems'
10 arch=(x86_64)
11 url='https://www.gnu.org/software/glpk/glpk.html'
12 license=(GPL)
13 depends=(gmp)
14 source=(https://ftp.gnu.org/gnu/glpk/${pkgname}-${pkgver}.tar.gz{,.sig})
15 sha256sums=('4a1013eebb50f728fc601bdd833b0b2870333c3b3e5a816eeba921d95bec6f15'
16             'SKIP')
17 validpgpkeys=('A2B56CCB42220C06481335BAD17BF2305981E818') # Andrew Makhorin
19 build() {
20   cd $pkgname-$pkgver
22   ./configure --prefix=/usr --with-gmp
23   make
26 check() {
27   cd $pkgname-$pkgver
28   make check
31 package(){
32   cd $pkgname-$pkgver
33   make DESTDIR="$pkgdir" install
34   install -Dm644 doc/{glpk,gmpl}.pdf -t "$pkgdir"/usr/share/doc/glpk/