mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
r-redisparam: init
This commit is contained in:
parent
c6ace6daf8
commit
66709f0304
9 changed files with 259 additions and 0 deletions
44
BioArchLinux/r-redisparam/PKGBUILD
Normal file
44
BioArchLinux/r-redisparam/PKGBUILD
Normal file
|
@ -0,0 +1,44 @@
|
|||
# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com>
|
||||
|
||||
_pkgname=RedisParam
|
||||
_pkgver=1.4.0
|
||||
pkgname=r-${_pkgname,,}
|
||||
pkgver=${_pkgver//-/.}
|
||||
pkgrel=1
|
||||
pkgdesc="Provide a 'redis' back-end for BiocParallel"
|
||||
arch=(any)
|
||||
url="https://bioconductor.org/packages/${_pkgname}"
|
||||
license=(Artistic2.0)
|
||||
depends=(
|
||||
r-biocparallel
|
||||
r-futile.logger
|
||||
r-redux
|
||||
r-withr
|
||||
)
|
||||
checkdepends=(
|
||||
r-testthat
|
||||
)
|
||||
optdepends=(
|
||||
r-biocstyle
|
||||
r-knitr
|
||||
r-rmarkdown
|
||||
r-testthat
|
||||
)
|
||||
source=("https://bioconductor.org/packages/release/bioc/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
|
||||
md5sums=('cf24018f96bc9de6286d2806dfd7bfaa')
|
||||
sha256sums=('5ec7a73f0109edf45a41a8922246a6ff183f0fce305156101b56725ab4132041')
|
||||
|
||||
build() {
|
||||
mkdir -p build
|
||||
R CMD INSTALL "$_pkgname" -l build
|
||||
}
|
||||
|
||||
check() {
|
||||
cd "$_pkgname/tests"
|
||||
R_LIBS="$srcdir/build" NOT_CRAN=true Rscript --vanilla testthat.R
|
||||
}
|
||||
|
||||
package() {
|
||||
install -d "$pkgdir/usr/lib/R/library"
|
||||
cp -a --no-preserve=ownership "build/$_pkgname" "$pkgdir/usr/lib/R/library"
|
||||
}
|
17
BioArchLinux/r-redisparam/lilac.py
Normal file
17
BioArchLinux/r-redisparam/lilac.py
Normal file
|
@ -0,0 +1,17 @@
|
|||
#!/usr/bin/env python3
|
||||
from lilaclib import *
|
||||
|
||||
import os
|
||||
import sys
|
||||
sys.path.append(os.path.normpath(f'{__file__}/../../../lilac-extensions'))
|
||||
from lilac_r_utils import r_pre_build
|
||||
|
||||
def pre_build():
|
||||
r_pre_build(
|
||||
_G,
|
||||
expect_systemrequirements = "hiredis",
|
||||
)
|
||||
|
||||
def post_build():
|
||||
git_pkgbuild_commit()
|
||||
update_aur_repo()
|
17
BioArchLinux/r-redisparam/lilac.yaml
Normal file
17
BioArchLinux/r-redisparam/lilac.yaml
Normal file
|
@ -0,0 +1,17 @@
|
|||
build_prefix: extra-x86_64
|
||||
maintainers:
|
||||
- github: pekkarr
|
||||
email: pekkarr@protonmail.com
|
||||
repo_depends:
|
||||
- r-biocparallel
|
||||
- r-futile.logger
|
||||
- r-redux
|
||||
- r-withr
|
||||
repo_makedepends:
|
||||
- r-testthat
|
||||
update_on:
|
||||
- source: rpkgs
|
||||
pkgname: RedisParam
|
||||
repo: bioc
|
||||
md5: true
|
||||
- alias: r
|
44
BioArchLinux/r-redux/PKGBUILD
Normal file
44
BioArchLinux/r-redux/PKGBUILD
Normal file
|
@ -0,0 +1,44 @@
|
|||
# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com>
|
||||
|
||||
_pkgname=redux
|
||||
_pkgver=1.1.4
|
||||
pkgname=r-${_pkgname,,}
|
||||
pkgver=${_pkgver//-/.}
|
||||
pkgrel=1
|
||||
pkgdesc="R Bindings to 'hiredis'"
|
||||
arch=(x86_64)
|
||||
url="https://cran.r-project.org/package=${_pkgname}"
|
||||
license=(GPL2)
|
||||
depends=(
|
||||
hiredis
|
||||
r-r6
|
||||
r-storr
|
||||
)
|
||||
checkdepends=(
|
||||
r-sys
|
||||
r-testthat
|
||||
)
|
||||
optdepends=(
|
||||
r-knitr
|
||||
r-rmarkdown
|
||||
r-sys
|
||||
r-testthat
|
||||
)
|
||||
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
|
||||
md5sums=('13eb2a35ff97ad02e09b1e42ec8cff7c')
|
||||
sha256sums=('201d7c89840f3d698fe94ec3fe4088a19c2a9dc19ee7ec300d5deeadd2606fb1')
|
||||
|
||||
build() {
|
||||
mkdir -p build
|
||||
R CMD INSTALL "$_pkgname" -l build
|
||||
}
|
||||
|
||||
check() {
|
||||
cd "$_pkgname/tests"
|
||||
R_LIBS="$srcdir/build" NOT_CRAN=true Rscript --vanilla testthat.R
|
||||
}
|
||||
|
||||
package() {
|
||||
install -d "$pkgdir/usr/lib/R/library"
|
||||
cp -a --no-preserve=ownership "build/$_pkgname" "$pkgdir/usr/lib/R/library"
|
||||
}
|
17
BioArchLinux/r-redux/lilac.py
Normal file
17
BioArchLinux/r-redux/lilac.py
Normal file
|
@ -0,0 +1,17 @@
|
|||
#!/usr/bin/env python3
|
||||
from lilaclib import *
|
||||
|
||||
import os
|
||||
import sys
|
||||
sys.path.append(os.path.normpath(f'{__file__}/../../../lilac-extensions'))
|
||||
from lilac_r_utils import r_pre_build
|
||||
|
||||
def pre_build():
|
||||
r_pre_build(
|
||||
_G,
|
||||
expect_systemrequirements = "hiredis",
|
||||
)
|
||||
|
||||
def post_build():
|
||||
git_pkgbuild_commit()
|
||||
update_aur_repo()
|
20
BioArchLinux/r-redux/lilac.yaml
Normal file
20
BioArchLinux/r-redux/lilac.yaml
Normal file
|
@ -0,0 +1,20 @@
|
|||
build_prefix: extra-x86_64
|
||||
maintainers:
|
||||
- github: pekkarr
|
||||
email: pekkarr@protonmail.com
|
||||
repo_depends:
|
||||
- r-r6
|
||||
- r-storr
|
||||
repo_makedepends:
|
||||
- r-sys
|
||||
- r-testthat
|
||||
update_on:
|
||||
- source: rpkgs
|
||||
pkgname: redux
|
||||
repo: cran
|
||||
md5: true
|
||||
- alias: r
|
||||
- source: alpmfiles
|
||||
pkgname: hiredis
|
||||
filename: usr/lib/libhiredis\.so\.([^.]+\.[^.]+\.[^.]+)
|
||||
repo: extra
|
67
BioArchLinux/r-storr/PKGBUILD
Normal file
67
BioArchLinux/r-storr/PKGBUILD
Normal file
|
@ -0,0 +1,67 @@
|
|||
# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com>
|
||||
|
||||
_pkgname=storr
|
||||
_pkgver=1.2.5
|
||||
pkgname=r-${_pkgname,,}
|
||||
pkgver=${_pkgver//-/.}
|
||||
pkgrel=1
|
||||
pkgdesc="Simple Key Value Stores"
|
||||
arch=(x86_64)
|
||||
url="https://cran.r-project.org/package=${_pkgname}"
|
||||
license=(MIT)
|
||||
depends=(
|
||||
r-digest
|
||||
r-r6
|
||||
)
|
||||
checkdepends=(
|
||||
postgresql
|
||||
r-dbi
|
||||
r-mockr
|
||||
r-rpostgres
|
||||
r-rsqlite
|
||||
r-testthat
|
||||
)
|
||||
optdepends=(
|
||||
r-dbi
|
||||
r-knitr
|
||||
r-mockr
|
||||
r-progress
|
||||
r-rbenchmark
|
||||
r-rmarkdown
|
||||
r-rpostgres
|
||||
r-rsqlite
|
||||
r-testthat
|
||||
)
|
||||
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
|
||||
md5sums=('0bec8b9e53ad575bd9a20b68a798f853')
|
||||
sha256sums=('4224c3991d9c043a45ce530d0698d7f2cdca231b26fe31b45e0db865026e5f63')
|
||||
|
||||
build() {
|
||||
mkdir -p build
|
||||
R CMD INSTALL "$_pkgname" -l build
|
||||
}
|
||||
|
||||
check() {
|
||||
cd "$_pkgname/tests"
|
||||
|
||||
# create database for tests
|
||||
export PGDATA="$srcdir/db"
|
||||
export PGHOST="$srcdir/host"
|
||||
mkdir "$PGHOST"
|
||||
initdb
|
||||
pg_ctl -o "-h '' -k ${PGHOST@Q}" start
|
||||
createdb
|
||||
|
||||
R_LIBS="$srcdir/build" NOT_CRAN=true Rscript --vanilla testthat.R
|
||||
|
||||
# shut down test database
|
||||
pg_ctl stop
|
||||
}
|
||||
|
||||
package() {
|
||||
install -d "$pkgdir/usr/lib/R/library"
|
||||
cp -a --no-preserve=ownership "build/$_pkgname" "$pkgdir/usr/lib/R/library"
|
||||
|
||||
install -d "$pkgdir/usr/share/licenses/$pkgname"
|
||||
ln -s "/usr/lib/R/library/$_pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname"
|
||||
}
|
14
BioArchLinux/r-storr/lilac.py
Normal file
14
BioArchLinux/r-storr/lilac.py
Normal file
|
@ -0,0 +1,14 @@
|
|||
#!/usr/bin/env python3
|
||||
from lilaclib import *
|
||||
|
||||
import os
|
||||
import sys
|
||||
sys.path.append(os.path.normpath(f'{__file__}/../../../lilac-extensions'))
|
||||
from lilac_r_utils import r_pre_build
|
||||
|
||||
def pre_build():
|
||||
r_pre_build(_G)
|
||||
|
||||
def post_build():
|
||||
git_pkgbuild_commit()
|
||||
update_aur_repo()
|
19
BioArchLinux/r-storr/lilac.yaml
Normal file
19
BioArchLinux/r-storr/lilac.yaml
Normal file
|
@ -0,0 +1,19 @@
|
|||
build_prefix: extra-x86_64
|
||||
maintainers:
|
||||
- github: pekkarr
|
||||
email: pekkarr@protonmail.com
|
||||
repo_depends:
|
||||
- r-digest
|
||||
- r-r6
|
||||
repo_makedepends:
|
||||
- r-dbi
|
||||
- r-mockr
|
||||
- r-rpostgres
|
||||
- r-rsqlite
|
||||
- r-testthat
|
||||
update_on:
|
||||
- source: rpkgs
|
||||
pkgname: storr
|
||||
repo: cran
|
||||
md5: true
|
||||
- alias: r
|
Loading…
Add table
Reference in a new issue