blob: 9831de6b614be2dd4e457749651ad8e88d869788 (
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
|
# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com>
# Contributor: Guoyi Zhang <guoyizhang at malacology dot net>
_pkgname=lpSolve
_pkgver=5.6.22
pkgname=r-${_pkgname,,}
pkgver=${_pkgver//-/.}
pkgrel=1
pkgdesc="Interface to 'Lp_solve' v. 5.5 to Solve Linear/Integer Programs"
arch=(x86_64)
url="https://cran.r-project.org/package=$_pkgname"
license=('LGPL-2.0-only')
depends=(
lpsolve
r
)
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz"
"system-lpsolve.patch")
md5sums=('ca541c5fcfe1369cae20eca23a58b98f'
'cd8dd2b63a8ba9697c3c4a5569c7c9c5')
b2sums=('7f42110180869d8cb6e312ec9219d251f5c6989232f4584dba4133887f6f708569f582b9fc2167d164482df22d774645c5c715809b09a216c66488da0e3eb11b'
'769a1dd7a495e778484785980b19c4558c9c82ec9b812ff13e40a0745f631af109a143e7613aad53dbaf70936fb02a2401e4f50675bb48d5b1155c391cedabc4')
prepare() {
# build against system lpsolve
patch -Np1 -i system-lpsolve.patch
rm "$_pkgname"/src/*.h
}
build() {
mkdir build
R CMD INSTALL -l build "$_pkgname"
}
package() {
install -d "$pkgdir/usr/lib/R/library"
cp -a --no-preserve=ownership "build/$_pkgname" "$pkgdir/usr/lib/R/library"
}
|