blob: 561d8ae376d912a3f2550204f77d6276418d95b8 (
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: Dringsim <dringsim@qq.com>
_cranname=rolog
_cranver=0.9.14
pkgname=r-${_cranname,,}
pkgver=${_cranver//[:-]/.}
pkgrel=1
pkgdesc="Query SWI-Prolog from R"
arch=('x86_64')
url="https://cran.r-project.org/package=${_cranname}"
license=('BSD')
depends=('r-rcpp' 'swi-prolog')
makedepends=()
optdepends=('r-rmarkdown'
'r-knitr'
'r-diagrammer'
'r-diagrammersvg'
'r-rsvg'
'r-htmltools'
'r-testthat')
source=("https://cran.r-project.org/src/contrib/${_cranname}_${_cranver}.tar.gz")
sha256sums=('5D85227972C7D682407FADCBECF0AF25589A779BAD490A6BA9C8282144E17E5E')
prepare() {
sed -i 's/Rcpp, rswipl (>= 9.1.9)/Rcpp/' ./${_cranname}/DESCRIPTION
tar -zcvf ${_cranname}_${_cranver}-patched.tar.gz ./${_cranname}
}
build() {
unset SWI_HOME_DIR
R CMD INSTALL ${_cranname}_${_cranver}-patched.tar.gz -l "${srcdir}"
}
package() {
install -dm0755 "${pkgdir}/usr/lib/R/library"
cp -a --no-preserve=ownership "${_cranname}" "${pkgdir}/usr/lib/R/library"
}
|