Guest User

glpk 4.47-2 PKGBUILD

a guest
May 13th, 2015
217
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # $Id$
  2. # Maintainer: Ronald van Haren <ronald.archlinux.org>
  3. # Contributor: bzklrm <bzklrm@gmail.com>
  4. # Additional contributors Senjin, Xavier, dundee
  5.  
  6. pkgname=glpk
  7. pkgver=4.47
  8. pkgrel=2
  9. pkgdesc="GNU Linear Programming Kit : solve LP, MIP and other problems."
  10. arch=('i686' 'x86_64')
  11. url="http://www.gnu.org/software/glpk/glpk.html"
  12. license=('GPL')
  13. depends=('glibc')
  14. options=('!libtool')
  15. source=(http://ftp.gnu.org/gnu/glpk/${pkgname}-${pkgver}.tar.gz)
  16. sha1sums=('35e16d3167389b6bc75eb51b4b48590db59f789c')
  17.  
  18. build() {
  19.   cd "${srcdir}/${pkgname}-${pkgver}"
  20.  
  21.   ./configure --prefix=/usr
  22.  
  23.   if [ "$CARCH" == "x86_64" ]; then
  24.     make CFLAGS="$CFLAGS -fPIC"  
  25.   else
  26.     make
  27.   fi
  28. }
  29.  
  30. package(){
  31.   cd "${srcdir}/${pkgname}-${pkgver}"
  32.   make DESTDIR="${pkgdir}" install
  33.   install -Dm644 doc/glpk.pdf "${pkgdir}/usr/share/doc/glpk/glpk.pdf"
  34.   install -Dm644 doc/gmpl.pdf "${pkgdir}/usr/share/doc/glpk/gmpl.pdf"
  35. }
RAW Paste Data