db-move: moved webkitgtk-6.0 from [testing] to [extra] (x86_64)
[arch-packages.git] / lpsolve / repos / extra-x86_64 / PKGBUILD
blobc27a26c6f5bc6d221e020a28a64dc915f4fbbd90
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=2
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 options=('debug')
14 source=(https://downloads.sourceforge.net/project/lpsolve/lpsolve/${pkgver}/lp_solve_${pkgver}_source.tar.gz
15         flags.patch)
16 sha1sums=('c0ffa7b8d49938ba213b4d3e894d56b3aba4e983'
17           '6fb51fcc2d821f3ca16b0da9e93cf211abafcde2')
18 sha256sums=('6d4abff5cc6aaa933ae8e6c17a226df0fc0b671c438f69715d41d09fe81f902f'
19             '2d374f905a31c17769f52ca57d0e41f39bbe71e84a28f7ab972a63cf380bf14b')
21 prepare() {
22   cd ${_origname}_${_mainver}
23   # add CFLAGS/LDFLAGS
24   patch -Np1 -i "$srcdir"/flags.patch
27 build() {
28   cd ${_origname}_${_mainver}
30   # taken from Fedora spec
31   cd lpsolve55
32   sh -x ccc
33 #  rm bin/ux*/liblpsolve55.a
34   cd ../lp_solve
35   sh -x ccc
38 package() {
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/