25 lines
771 B
Plaintext
25 lines
771 B
Plaintext
# Description: a Mixed Integer Linear Programming (MILP) solver
|
|
# URL: http://lpsolve.sourceforge.net/
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
|
# Depends on:
|
|
|
|
name=lpsolve
|
|
version=5.5.2.5
|
|
release=1
|
|
source=(http://downloads.sourceforge.net/project/lpsolve/lpsolve/$version/lp_solve_"$version"_source.tar.gz cflags.patch lpsolve-5.5.2.0.defines.patch)
|
|
|
|
build() {
|
|
cd lp_solve_${version:0:3}
|
|
patch -Np1 -i $SRC/cflags.patch
|
|
patch -Np1 -i $SRC/lpsolve-5.5.2.0.defines.patch
|
|
cd lpsolve55
|
|
sh -x ccc
|
|
cd ../lp_solve
|
|
sh -x ccc
|
|
cd ..
|
|
install -dm755 $PKG/usr/{bin,lib,include/lpsolve}
|
|
install -m755 lp_solve/bin/ux*/lp_solve $PKG/usr/bin/
|
|
install -m755 lpsolve55/bin/ux*/liblpsolve55.so $PKG/usr/lib/
|
|
install -m644 lp*.h $PKG/usr/include/lpsolve/
|
|
}
|