1 # Maintainer: AndyRTR <andyrtr@archlinux.org>
8 pkgdesc="a Mixed Integer Linear Programming (MILP) solver"
10 url="http://lpsolve.sourceforge.net/" # no https
13 source=(https://downloads.sourceforge.net/project/lpsolve/lpsolve/${pkgver}/lp_solve_${pkgver}_source.tar.gz
15 sha1sums=('c0ffa7b8d49938ba213b4d3e894d56b3aba4e983'
16 '6fb51fcc2d821f3ca16b0da9e93cf211abafcde2')
17 sha256sums=('6d4abff5cc6aaa933ae8e6c17a226df0fc0b671c438f69715d41d09fe81f902f'
18 '2d374f905a31c17769f52ca57d0e41f39bbe71e84a28f7ab972a63cf380bf14b')
21 cd ${_origname}_${_mainver}
23 patch -Np1 -i "$srcdir"/flags.patch
27 cd ${_origname}_${_mainver}
29 # taken from Fedora spec
32 # rm bin/ux*/liblpsolve55.a
38 cd ${_origname}_${_mainver}
40 install -dm755 "${pkgdir}"/usr/{bin,lib,include/lpsolve}
41 install -m755 lp_solve/bin/ux*/lp_solve "${pkgdir}"/usr/bin/
42 install -m755 lpsolve55/bin/ux*/liblpsolve55.so "${pkgdir}"/usr/lib/
43 install -m644 lp*.h "${pkgdir}"/usr/include/lpsolve/