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