mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 19:57:14 +08:00
38 lines
893 B
Bash
38 lines
893 B
Bash
#
|
|
# Platform Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
|
|
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
|
|
|
# include global config
|
|
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
|
|
|
pkgname=glpk
|
|
pkgver=4.44
|
|
pkgrel=1
|
|
pkgdesc="GNU Linear Programming Kit : solve LP, MIP and other problems."
|
|
arch=('i686' 'x86_64')
|
|
url="http://www.gnu.org/software/glpk/glpk.html"
|
|
license=('GPL')
|
|
depends=('glibc')
|
|
options=('!libtool')
|
|
source=("http://ftp.gnu.org/gnu/glpk/${pkgname}-${pkgver}.tar.gz")
|
|
md5sums=('f2ac7013bc0420d730d052e7ba24bdb1')
|
|
|
|
build() {
|
|
cd ${srcdir}/${pkgname}-${pkgver}
|
|
|
|
./configure --prefix=/usr
|
|
|
|
if [ "$CARCH" == "x86_64" ]; then
|
|
make CFLAGS="$CFLAGS -fPIC"
|
|
else
|
|
make
|
|
fi
|
|
}
|
|
|
|
package(){
|
|
cd ${srcdir}/${pkgname}-${pkgver}
|
|
make DESTDIR="${pkgdir}" install
|
|
}
|