OCaml 4.14.0 rebuild
[arch-packages.git] / lpsolve / trunk / PKGBUILD
blob4acf7bc60eca2fead1850a48155075afbc154dc4
1 # Maintainer: AndyRTR <andyrtr@archlinux.org>
3 pkgname=lpsolve
4 _origname=lp_solve
5 pkgver=5.5.2.11
6 _mainver=5.5
7 pkgrel=1
8 pkgdesc="a Mixed Integer Linear Programming (MILP) solver"
9 arch=('x86_64')
10 url="http://lpsolve.sourceforge.net/" # no https
11 license=('LGPL2.1')
12 depends=('glibc')
13 source=(https://downloads.sourceforge.net/project/lpsolve/lpsolve/${pkgver}/lp_solve_${pkgver}_source.tar.gz
14         flags.patch)
15 sha1sums=('c0ffa7b8d49938ba213b4d3e894d56b3aba4e983'
16           '6fb51fcc2d821f3ca16b0da9e93cf211abafcde2')
18 prepare() {
19   cd ${_origname}_${_mainver}
20   # add CFLAGS/LDFLAGS
21   patch -Np1 -i "$srcdir"/flags.patch
24 build() {
25   cd ${_origname}_${_mainver}
27   # taken from Fedora spec
28   cd lpsolve55
29   sh -x ccc
30 #  rm bin/ux*/liblpsolve55.a
31   cd ../lp_solve
32   sh -x ccc
35 package() {
36   cd ${_origname}_${_mainver}
38   install -dm755 "${pkgdir}"/usr/{bin,lib,include/lpsolve}
39   install -m755 lp_solve/bin/ux*/lp_solve "${pkgdir}"/usr/bin/
40   install -m755 lpsolve55/bin/ux*/liblpsolve55.so "${pkgdir}"/usr/lib/
41   install -m644 lp*.h "${pkgdir}"/usr/include/lpsolve/