mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
add r-rinside: needed by jasp
This commit is contained in:
parent
b548949dd5
commit
f5e622af8d
3 changed files with 48 additions and 0 deletions
27
BioArchLinux/r-rinside/PKGBUILD
Normal file
27
BioArchLinux/r-rinside/PKGBUILD
Normal file
|
@ -0,0 +1,27 @@
|
|||
# Maintainer: sukanka <su975853527@gmail.com>
|
||||
|
||||
_pkgname=RInside
|
||||
_pkgver=0.2.17
|
||||
pkgname=r-${_pkgname,,}
|
||||
pkgver=${_pkgver//[:-]/.}
|
||||
pkgrel=1
|
||||
pkgdesc='C++ Classes to Embed R in C++ (and C) Applications'
|
||||
arch=('x86_64')
|
||||
url="https://cran.r-project.org/package=${_pkgname}"
|
||||
license=('GPL')
|
||||
depends=(
|
||||
r
|
||||
r-rcpp
|
||||
)
|
||||
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
|
||||
sha256sums=('0be28c44ee34cba669a7264d2b99c289230645598ca78e21682559dc31824348')
|
||||
|
||||
build() {
|
||||
R CMD INSTALL ${_pkgname}_${_pkgver}.tar.gz -l "${srcdir}"
|
||||
}
|
||||
|
||||
package() {
|
||||
install -dm0755 "${pkgdir}/usr/lib/R/library"
|
||||
cp -a --no-preserve=ownership "${_pkgname}" "${pkgdir}/usr/lib/R/library"
|
||||
}
|
||||
# vim:set ts=2 sw=2 et:
|
12
BioArchLinux/r-rinside/lilac.py
Normal file
12
BioArchLinux/r-rinside/lilac.py
Normal file
|
@ -0,0 +1,12 @@
|
|||
#!/usr/bin/env python3
|
||||
from lilaclib import *
|
||||
|
||||
def pre_build():
|
||||
for line in edit_file('PKGBUILD'):
|
||||
if line.startswith('_pkgver='):
|
||||
line = f'_pkgver={_G.newver}'
|
||||
print(line)
|
||||
update_pkgver_and_pkgrel(_G.newver.replace(':', '.').replace('-', '.'))
|
||||
|
||||
def post_build():
|
||||
git_pkgbuild_commit()
|
9
BioArchLinux/r-rinside/lilac.yaml
Normal file
9
BioArchLinux/r-rinside/lilac.yaml
Normal file
|
@ -0,0 +1,9 @@
|
|||
build_prefix: extra-x86_64
|
||||
maintainers:
|
||||
- github: sukanka
|
||||
repo_depends:
|
||||
- r-rcpp
|
||||
update_on:
|
||||
- regex: RInside_([\d._-]+).tar.gz
|
||||
source: regex
|
||||
url: https://cran.r-project.org/package=RInside
|
Loading…
Add table
Reference in a new issue