r-v8: build with system nodejs

This commit is contained in:
Butui Hu 2022-10-19 15:43:35 +08:00
parent cf63948e6f
commit 385345a53a
2 changed files with 21 additions and 14 deletions

View file

@ -17,9 +17,7 @@ depends=(
r-curl
r-jsonlite
r-rcpp
)
makedepends=(
make
nodejs
)
optdepends=(
r-knitr
@ -28,9 +26,16 @@ optdepends=(
)
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
sha256sums=('99881af4798d11da0adccd8e4e1aa5dc4adccf5e3572724c14f6f90c2b8c3ff0')
options=(staticlibs)
prepare() {
# build with system nodejs
sed -i '11,12d' ${_pkgname}/configure
sed -i '11i PKG_LIBS="-lnode"\nPKG_CFLAGS="-I/usr/include/node"' ${_pkgname}/configure
tar cvfz ${_pkgname}_${pkgver}.tar.gz ${_pkgname}
}
build() {
R CMD INSTALL --configure-vars='DOWNLOAD_STATIC_LIBV8=1' ${_pkgname}_${_pkgver}.tar.gz -l "${srcdir}"
R CMD INSTALL ${_pkgname}_${pkgver}.tar.gz -l "${srcdir}"
}
package() {

View file

@ -1,13 +1,15 @@
build_prefix: extra-x86_64
maintainers:
- github: starsareintherose
email: kuoi@bioarchlinux.org
- github: starsareintherose
email: kuoi@bioarchlinux.org
repo_depends:
- r-curl
- r-jsonlite
- r-rcpp
- r-curl
- r-jsonlite
- r-rcpp
update_on:
- regex: V8_([\d._-]+).tar.gz
source: regex
url: https://cran.r-project.org/package=V8
- alias: r
- source: regex
regex: V8_([\d._-]+).tar.gz
url: https://cran.r-project.org/package=V8
- source: manual
manual: 1
- alias: r