# Maintainer: Luis Henrique # Mandatory pkgname=glpk pkgver=4.45 pkgrel=1lm source=("http://ftp.gnu.org/gnu/glpk/glpk-4.45.tar.gz") # Optional docs=("AUTHORS" "COPYING" "ChangeLog" "INSTALL" "NEWS" "README" "THANKS") 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 language, which is a subset of the AMPL" "language." ) build() { cd $startdir/src/$pkgname-$pkgver ./configure \ --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --sysconfdir=/etc \ --localstatedir=/var \ --mandir=/usr/man \ --docdir=/usr/doc/$pkgname-$pkgver \ --enable-static=no \ --enable-shared=yes \ --build=$arch-slackware-linux make || return 1 make DESTDIR=$startdir/pkg install # Copy additional documentation and examples mkdir -p $startdir/pkg/usr/doc/$pkgname-$pkgver cp -a doc examples $startdir/pkg/usr/doc/$pkgname-$pkgver } cp -a doc examples $startdir/pkg/usr/doc/$pkgname-$pkgver }