#Packager: George Vlahavas <vlahavas~at~gmail~dot~com>

pkgname=glpk
pkgver=4.60
pkgrel=1gv
source=("http://ftp.gnu.org/gnu/glpk/glpk-$pkgver.tar.gz")
docs=("readme" "install" "copying" "changelog" "authors" "news" "todo" "thanks" "*.pdf")
url=http://www.gnu.org/software/glpk/

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"glpk (GNU Linear Programming Kit)"
"The GLPK package is intended for solving large-scale linear"
"programming (LP), mixed integer programming (MIP), and other related"
"problems. It is a set of routines written in ANSI C and organized in"
"the form of a callable library."
"GLPK supports the GNU MathProg modeling language, which is a subset of"
"the AMPL language."
)


build() {
	cd $startdir/src/$pkgname-$pkgver
	./configure --prefix=/usr \
		--libdir=/usr/lib${LIBDIRSUFFIX} \
		--localstatedir=/var \
		--sysconfdir=/etc \
		--disable-static \
		--build=$arch-slackware-linux
	make -j $numjobs || return 1
	make install DESTDIR=$startdir/pkg

	mkdir -p $startdir/pkg/usr/doc/$pkgname-$pkgver
	cp -r examples $startdir/pkg/usr/doc/$pkgname-$pkgver/
}