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