blob: f1eeff15ecbd7e51857fc65feebccfc5063d9203 (
plain)
1 # Description: A Mixed Integer Linear Programming (MILP) solver
2 # URL: http://lpsolve.sourceforge.net/
3 # Maintainer: Tim Biermann, tbier at posteo dot de
4
5 name=lpsolve
6 version=5.5.2.11
7 release=2
8 source=(https://downloads.sourceforge.net/project/lpsolve/lpsolve/$version/lp_solve_"$version"_source.tar.gz)
9
10 build() {
11 cd lp_solve_${version:0:3}
12
13 sed -e "s|^\(opts=\).*|\1'$CFLAGS'|" -i lpsolve55/ccc lp_solve/ccc
14
15 ( cd lpsolve55
16 sh -x ccc )
17
18 ( cd lp_solve
19 sh -x ccc )
20
21 install -dm755 $PKG/usr/{bin,lib,include/lpsolve}
22 install -m755 -t $PKG/usr/bin lp_solve/bin/ux*/lp_solve
23 install -m755 -t $PKG/usr/lib lpsolve55/bin/ux*/liblpsolve55.so
24 install -m644 -t $PKG/usr/include/lpsolve lp*.h
25 }
|