# $Id: PKGBUILD 51162 2009-09-05 13:45:34Z andyrtr $ # Maintainer: AndyRTR pkgname=lpsolve _origname=lp_solve pkgver=5.5.0.15 _mainver=5.5 pkgrel=1 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=('2408c94893394f832469661c16b9f0d0' '7403f745d06619f59f52800b655d8751') build() { cd "${srcdir}/${_origname}_${_mainver}" patch -Np1 -i $srcdir/cflags.patch || return 1 # taken from Fedora spec cd lpsolve55 sh -x ccc rm bin/ux*/liblpsolve55.a cd ../lp_solve sh -x ccc cd .. # install install -d ${pkgdir}/usr/{bin,lib,include/lpsolve} install -m 755 lp_solve/bin/ux*/lp_solve ${pkgdir}/usr/bin/ install -m 755 lpsolve55/bin/ux*/liblpsolve55.so ${pkgdir}/usr/lib/ install -m 644 lp*.h ${pkgdir}/usr/include/lpsolve/ }