mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
r-pkgdepends: init
This commit is contained in:
parent
41b268efe4
commit
9a1052c56f
10 changed files with 345 additions and 0 deletions
71
BioArchLinux/r-asciicast/PKGBUILD
Normal file
71
BioArchLinux/r-asciicast/PKGBUILD
Normal file
|
@ -0,0 +1,71 @@
|
|||
# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com>
|
||||
# Contributor: peippo <christoph+aur@christophfink.com>
|
||||
|
||||
_pkgname=asciicast
|
||||
_pkgver=2.3.1
|
||||
pkgname=r-${_pkgname,,}
|
||||
pkgver=${_pkgver//-/.}
|
||||
pkgrel=2
|
||||
pkgdesc="Create 'Ascii' Screen Casts from R Scripts"
|
||||
arch=(x86_64)
|
||||
url="https://cran.r-project.org/package=$_pkgname"
|
||||
license=('MIT')
|
||||
depends=(
|
||||
r-cli
|
||||
r-curl
|
||||
r-jsonlite
|
||||
r-magick
|
||||
r-processx
|
||||
r-tibble
|
||||
r-v8
|
||||
r-withr
|
||||
)
|
||||
checkdepends=(
|
||||
r-cpp11
|
||||
r-decor
|
||||
r-htmlwidgets
|
||||
r-mockery
|
||||
r-rmarkdown
|
||||
r-testthat
|
||||
)
|
||||
optdepends=(
|
||||
r-callr
|
||||
r-covr
|
||||
r-cpp11
|
||||
r-decor
|
||||
r-htmlwidgets
|
||||
r-knitr
|
||||
r-mockery
|
||||
r-rmarkdown
|
||||
r-rstudioapi
|
||||
r-testthat
|
||||
)
|
||||
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz"
|
||||
"skip-tests.patch")
|
||||
md5sums=('578583bc17279b6a9b29fa8901f5849c'
|
||||
'a9dcfc31b1ed44cffc9ded23922b4b4d')
|
||||
b2sums=('15827cc88d3e715fb0600d257df06834b4d813c56cc43517252784b007e5ee2734f321fe98386ef8287237703fb6c3e27ff4234804bbe7b67651d02bbc779859'
|
||||
'eb06846ca9ffd5fd84ab8b7d83b57376dea7fff7920b90c2d14e6814478019d4be4a57382591fb3af8204923e91ce607f96765f3c72900acbe87efcd6fc0e356')
|
||||
|
||||
prepare() {
|
||||
# skip tests that need phantomjs
|
||||
patch -Np1 -i skip-tests.patch
|
||||
}
|
||||
|
||||
build() {
|
||||
mkdir build
|
||||
R CMD INSTALL -l build "$_pkgname"
|
||||
}
|
||||
|
||||
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"
|
||||
|
||||
install -d "$pkgdir/usr/share/licenses/$pkgname"
|
||||
ln -s "/usr/lib/R/library/$_pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname"
|
||||
}
|
13
BioArchLinux/r-asciicast/lilac.py
Normal file
13
BioArchLinux/r-asciicast/lilac.py
Normal file
|
@ -0,0 +1,13 @@
|
|||
#!/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()
|
26
BioArchLinux/r-asciicast/lilac.yaml
Normal file
26
BioArchLinux/r-asciicast/lilac.yaml
Normal file
|
@ -0,0 +1,26 @@
|
|||
build_prefix: extra-x86_64
|
||||
maintainers:
|
||||
- github: pekkarr
|
||||
email: pekkarr@protonmail.com
|
||||
repo_depends:
|
||||
- r-cli
|
||||
- r-curl
|
||||
- r-jsonlite
|
||||
- r-magick
|
||||
- r-processx
|
||||
- r-tibble
|
||||
- r-v8
|
||||
- r-withr
|
||||
repo_makedepends:
|
||||
- r-cpp11
|
||||
- r-decor
|
||||
- r-htmlwidgets
|
||||
- r-mockery
|
||||
- r-rmarkdown
|
||||
- r-testthat
|
||||
update_on:
|
||||
- source: rpkgs
|
||||
pkgname: asciicast
|
||||
repo: cran
|
||||
md5: true
|
||||
- alias: r
|
10
BioArchLinux/r-asciicast/skip-tests.patch
Normal file
10
BioArchLinux/r-asciicast/skip-tests.patch
Normal file
|
@ -0,0 +1,10 @@
|
|||
diff --git a/asciicast/tests/testthat/test-gif.R b/asciicast/tests/testthat/test-gif.R
|
||||
index 9f52fad..b13983c 100644
|
||||
--- a/asciicast/tests/testthat/test-gif.R
|
||||
+++ b/asciicast/tests/testthat/test-gif.R
|
||||
@@ -1,4 +1,5 @@
|
||||
test_that("write_gif", {
|
||||
+ skip("requires phantomjs")
|
||||
if (!is_windows() && !is_macos() && !is_linux()) {
|
||||
skip("Unsupported OS")
|
||||
}
|
64
BioArchLinux/r-pkgcache/PKGBUILD
Normal file
64
BioArchLinux/r-pkgcache/PKGBUILD
Normal file
|
@ -0,0 +1,64 @@
|
|||
# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com>
|
||||
# Contributor: peippo <christoph+aur@christophfink.com>
|
||||
|
||||
_pkgname=pkgcache
|
||||
_pkgver=2.2.1
|
||||
pkgname=r-${_pkgname,,}
|
||||
pkgver=${_pkgver//-/.}
|
||||
pkgrel=1
|
||||
pkgdesc="Cache 'CRAN'-Like Metadata and R Packages"
|
||||
arch=(x86_64)
|
||||
url="https://cran.r-project.org/package=$_pkgname"
|
||||
license=('MIT')
|
||||
depends=(
|
||||
r-callr
|
||||
r-cli
|
||||
r-curl
|
||||
r-filelock
|
||||
r-jsonlite
|
||||
r-processx
|
||||
r-r6
|
||||
)
|
||||
checkdepends=(
|
||||
r-mockery
|
||||
r-spelling
|
||||
r-testthat
|
||||
r-webfakes
|
||||
)
|
||||
optdepends=(
|
||||
r-covr
|
||||
r-debugme
|
||||
r-desc
|
||||
r-fs
|
||||
r-mockery
|
||||
r-pillar
|
||||
r-pingr
|
||||
r-rprojroot
|
||||
r-sessioninfo
|
||||
r-spelling
|
||||
r-testthat
|
||||
r-webfakes
|
||||
r-withr
|
||||
r-zip
|
||||
)
|
||||
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
|
||||
md5sums=('f8769843c1df6314db2241aa01ee7224')
|
||||
b2sums=('cec310f9b8675482560fc10671f3e8580bc613ad410ffea4dfe8092e65ac356da57cc7e88bac96c175871768c01fa7e4241cb2aec26d39750800bcc1d21ad577')
|
||||
|
||||
build() {
|
||||
mkdir build
|
||||
R CMD INSTALL -l build "$_pkgname"
|
||||
}
|
||||
|
||||
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"
|
||||
|
||||
install -d "$pkgdir/usr/share/licenses/$pkgname"
|
||||
ln -s "/usr/lib/R/library/$_pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname"
|
||||
}
|
13
BioArchLinux/r-pkgcache/lilac.py
Normal file
13
BioArchLinux/r-pkgcache/lilac.py
Normal file
|
@ -0,0 +1,13 @@
|
|||
#!/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()
|
23
BioArchLinux/r-pkgcache/lilac.yaml
Normal file
23
BioArchLinux/r-pkgcache/lilac.yaml
Normal file
|
@ -0,0 +1,23 @@
|
|||
build_prefix: extra-x86_64
|
||||
maintainers:
|
||||
- github: pekkarr
|
||||
email: pekkarr@protonmail.com
|
||||
repo_depends:
|
||||
- r-callr
|
||||
- r-cli
|
||||
- r-curl
|
||||
- r-filelock
|
||||
- r-jsonlite
|
||||
- r-processx
|
||||
- r-r6
|
||||
repo_makedepends:
|
||||
- r-mockery
|
||||
- r-spelling
|
||||
- r-testthat
|
||||
- r-webfakes
|
||||
update_on:
|
||||
- source: rpkgs
|
||||
pkgname: pkgcache
|
||||
repo: cran
|
||||
md5: true
|
||||
- alias: r
|
80
BioArchLinux/r-pkgdepends/PKGBUILD
Normal file
80
BioArchLinux/r-pkgdepends/PKGBUILD
Normal file
|
@ -0,0 +1,80 @@
|
|||
# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com>
|
||||
# Contributor: peippo <christoph+aur@christophfink.com>
|
||||
|
||||
_pkgname=pkgdepends
|
||||
_pkgver=0.7.1
|
||||
pkgname=r-${_pkgname,,}
|
||||
pkgver=${_pkgver//-/.}
|
||||
pkgrel=1
|
||||
pkgdesc="Package Dependency Resolution and Downloads"
|
||||
arch=(any)
|
||||
url="https://cran.r-project.org/package=$_pkgname"
|
||||
license=('MIT')
|
||||
depends=(
|
||||
r-callr
|
||||
r-cli
|
||||
r-curl
|
||||
r-desc
|
||||
r-filelock
|
||||
r-jsonlite
|
||||
r-lpsolve
|
||||
r-pkgbuild
|
||||
r-pkgcache
|
||||
r-processx
|
||||
r-ps
|
||||
r-r6
|
||||
r-zip
|
||||
)
|
||||
checkdepends=(
|
||||
git
|
||||
pandoc
|
||||
r-asciicast
|
||||
r-mockery
|
||||
r-rmarkdown
|
||||
r-spelling
|
||||
r-svglite
|
||||
r-testthat
|
||||
r-webfakes
|
||||
systemd
|
||||
)
|
||||
optdepends=(
|
||||
r-asciicast
|
||||
r-covr
|
||||
r-debugme
|
||||
r-fansi
|
||||
r-fs
|
||||
r-glue
|
||||
r-htmlwidgets
|
||||
r-mockery
|
||||
r-pak
|
||||
r-pingr
|
||||
r-rmarkdown
|
||||
r-rstudioapi
|
||||
r-spelling
|
||||
r-svglite
|
||||
r-testthat
|
||||
r-tibble
|
||||
r-webfakes
|
||||
r-withr
|
||||
)
|
||||
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
|
||||
md5sums=('0768d59a31fe96bf44b7dabc662c0fcc')
|
||||
b2sums=('ad078222e18e9c61c3b22a9cfc54794c010e2552212930232f80c9c8054e8a52064755312df26bfb5f30bad5a232899e38e707fe1881f7cd82f63b9ed4d30b2a')
|
||||
|
||||
build() {
|
||||
mkdir build
|
||||
R CMD INSTALL -l build "$_pkgname"
|
||||
}
|
||||
|
||||
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"
|
||||
|
||||
install -d "$pkgdir/usr/share/licenses/$pkgname"
|
||||
ln -s "/usr/lib/R/library/$_pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname"
|
||||
}
|
13
BioArchLinux/r-pkgdepends/lilac.py
Normal file
13
BioArchLinux/r-pkgdepends/lilac.py
Normal file
|
@ -0,0 +1,13 @@
|
|||
#!/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()
|
32
BioArchLinux/r-pkgdepends/lilac.yaml
Normal file
32
BioArchLinux/r-pkgdepends/lilac.yaml
Normal file
|
@ -0,0 +1,32 @@
|
|||
build_prefix: extra-x86_64
|
||||
maintainers:
|
||||
- github: pekkarr
|
||||
email: pekkarr@protonmail.com
|
||||
repo_depends:
|
||||
- r-callr
|
||||
- r-cli
|
||||
- r-curl
|
||||
- r-desc
|
||||
- r-filelock
|
||||
- r-jsonlite
|
||||
- r-lpsolve
|
||||
- r-pkgbuild
|
||||
- r-pkgcache
|
||||
- r-processx
|
||||
- r-ps
|
||||
- r-r6
|
||||
- r-zip
|
||||
repo_makedepends:
|
||||
- r-asciicast
|
||||
- r-mockery
|
||||
- r-rmarkdown
|
||||
- r-spelling
|
||||
- r-svglite
|
||||
- r-testthat
|
||||
- r-webfakes
|
||||
update_on:
|
||||
- source: rpkgs
|
||||
pkgname: pkgdepends
|
||||
repo: cran
|
||||
md5: true
|
||||
- alias: r
|
Loading…
Add table
Reference in a new issue