blob: 9fe89786a2983182e0fca114f10262112507a699 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# $Id: PKGBUILD 216645 2014-07-08 18:07:17Z andyrtr $
# Maintainer: AndyRTR <andyrtr@archlinux.org>
pkgname=lpsolve
_origname=lp_solve
pkgver=5.5.2.0
_mainver=5.5
pkgrel=3
pkgdesc="a Mixed Integer Linear Programming (MILP) solver"
arch=('i686' 'x86_64')
url="http://lpsolve.sourceforge.net/"
license=('GPL')
depends=('glibc')
source=(http://downloads.sourceforge.net/project/lpsolve/lpsolve/${pkgver}/lp_solve_${pkgver}_source.tar.gz
cflags.patch)
md5sums=('167c0fb4ab178e0b7ab50bf0a635a836'
'7403f745d06619f59f52800b655d8751')
build() {
cd ${_origname}_${_mainver}
patch -Np1 -i $srcdir/cflags.patch
# taken from Fedora spec
cd lpsolve55
sh -x ccc
rm bin/ux*/liblpsolve55.a
cd ../lp_solve
sh -x ccc
}
package() {
cd ${_origname}_${_mainver}
install -dm755 ${pkgdir}/usr/{bin,lib,include/lpsolve}
install -m755 lp_solve/bin/ux*/lp_solve ${pkgdir}/usr/bin/
install -m755 lpsolve55/bin/ux*/liblpsolve55.so ${pkgdir}/usr/lib/
install -m644 lp*.h ${pkgdir}/usr/include/lpsolve/
}
|