mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
r-metr: use metadata checks, push to AUR
This commit is contained in:
parent
db3723ea7c
commit
b8265ae46e
9 changed files with 191 additions and 25 deletions
46
BioArchLinux/r-gsignal/PKGBUILD
Normal file
46
BioArchLinux/r-gsignal/PKGBUILD
Normal file
|
@ -0,0 +1,46 @@
|
|||
# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com>
|
||||
|
||||
_pkgname=gsignal
|
||||
_pkgver=0.3-5
|
||||
pkgname=r-${_pkgname,,}
|
||||
pkgver=${_pkgver//-/.}
|
||||
pkgrel=1
|
||||
pkgdesc="Signal Processing"
|
||||
arch=(x86_64)
|
||||
url="https://cran.r-project.org/package=$_pkgname"
|
||||
license=('GPL-3.0-only')
|
||||
depends=(
|
||||
r-pracma
|
||||
r-rcpp
|
||||
)
|
||||
checkdepends=(
|
||||
r-testthat
|
||||
)
|
||||
optdepends=(
|
||||
r-covr
|
||||
r-ggplot2
|
||||
r-gridextra
|
||||
r-imager
|
||||
r-knitr
|
||||
r-microbenchmark
|
||||
r-rmarkdown
|
||||
r-testthat
|
||||
)
|
||||
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
|
||||
md5sums=('75ee9ce9ea4efaba70efe3966d6b950d')
|
||||
b2sums=('302dd2c399c6fa428edba0afef664adbe322cf517f21df28e8e8c92623724ecd86b63dd098e764c233feb4efe4f67988e76e15a0c5964b48cbbbcf53015f8c7b')
|
||||
|
||||
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"
|
||||
}
|
14
BioArchLinux/r-gsignal/lilac.py
Normal file
14
BioArchLinux/r-gsignal/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()
|
15
BioArchLinux/r-gsignal/lilac.yaml
Normal file
15
BioArchLinux/r-gsignal/lilac.yaml
Normal file
|
@ -0,0 +1,15 @@
|
|||
build_prefix: extra-x86_64
|
||||
maintainers:
|
||||
- github: pekkarr
|
||||
email: pekkarr@protonmail.com
|
||||
repo_depends:
|
||||
- r-pracma
|
||||
- r-rcpp
|
||||
repo_makedepends:
|
||||
- r-testthat
|
||||
update_on:
|
||||
- source: rpkgs
|
||||
pkgname: gsignal
|
||||
repo: cran
|
||||
md5: true
|
||||
- alias: r
|
|
@ -1,16 +1,18 @@
|
|||
# Maintainer: Guoyi Zhang <guoyizhang at malacology dot net>
|
||||
# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com>
|
||||
# Contributor: Guoyi Zhang <guoyizhang at malacology dot net>
|
||||
# Contributor: Carlos Aznarán <caznaranl@uni.pe>
|
||||
# Contributor: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com
|
||||
|
||||
_pkgname=metR
|
||||
_pkgver=0.15.0
|
||||
pkgname=r-${_pkgname,,}
|
||||
pkgver=0.15.0
|
||||
pkgver=${_pkgver//-/.}
|
||||
pkgrel=1
|
||||
pkgdesc='Tools for Easier Analysis of Meteorological Fields'
|
||||
arch=('any')
|
||||
url="https://cran.r-project.org/package=${_pkgname}"
|
||||
license=('GPL')
|
||||
pkgdesc="Tools for Easier Analysis of Meteorological Fields"
|
||||
arch=(any)
|
||||
url="https://cran.r-project.org/package=$_pkgname"
|
||||
license=('GPL-3.0-only')
|
||||
depends=(
|
||||
r
|
||||
r-checkmate
|
||||
r-data.table
|
||||
r-digest
|
||||
|
@ -27,6 +29,17 @@ depends=(
|
|||
r-sf
|
||||
r-stringr
|
||||
)
|
||||
checkdepends=(
|
||||
r-curl
|
||||
r-gsignal
|
||||
r-maps
|
||||
r-ncdf4
|
||||
r-pcict
|
||||
r-reshape2
|
||||
r-terra
|
||||
r-testthat
|
||||
r-vdiffr
|
||||
)
|
||||
optdepends=(
|
||||
r-covr
|
||||
r-gridextra
|
||||
|
@ -36,27 +49,38 @@ optdepends=(
|
|||
r-knitr
|
||||
r-kriging
|
||||
r-maps
|
||||
r-markdown
|
||||
r-ncdf4
|
||||
r-pcict
|
||||
r-pkgdown
|
||||
r-proj4
|
||||
r-raster
|
||||
r-reshape2
|
||||
r-rgdal
|
||||
r-rmarkdown
|
||||
r-rnaturalearth
|
||||
r-terra
|
||||
r-testthat
|
||||
r-vdiffr
|
||||
r-viridis
|
||||
)
|
||||
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
|
||||
sha256sums=('e02a5a4acccfbe8531e891819cfe955676d2ede896bcd7bfeb2d41d4a5e9109f')
|
||||
md5sums=('290d04139ae420099542606da5aff873')
|
||||
b2sums=('60d43e8400d35631bde9f924d7947858f62855d402616fe01a1bf56ef62ee7bfe99196c2fcb1817bbfc230248e1139300ff0843a70415daee2cd7e525f182031')
|
||||
|
||||
prepare() {
|
||||
# skip failing test
|
||||
sed -i '/"can use differnet engine"/a\ \ \ \ skip("fails")' "$_pkgname/tests/testthat/test-eof.R"
|
||||
}
|
||||
|
||||
build() {
|
||||
R CMD INSTALL ${_pkgname}_${_pkgver}.tar.gz -l "${srcdir}"
|
||||
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 -dm0755 "${pkgdir}/usr/lib/R/library"
|
||||
cp -a --no-preserve=ownership "${_pkgname}" "${pkgdir}/usr/lib/R/library"
|
||||
install -d "$pkgdir/usr/lib/R/library"
|
||||
cp -a --no-preserve=ownership "build/$_pkgname" "$pkgdir/usr/lib/R/library"
|
||||
}
|
||||
# vim:set ts=2 sw=2 et:
|
||||
|
|
|
@ -1,12 +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():
|
||||
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('-', '.'))
|
||||
r_pre_build(_G)
|
||||
|
||||
def post_build():
|
||||
git_pkgbuild_commit()
|
||||
update_aur_repo()
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
build_prefix: extra-x86_64
|
||||
maintainers:
|
||||
- github: starsareintherose
|
||||
email: kuoi@bioarchlinux.org
|
||||
- github: pekkarr
|
||||
email: pekkarr@protonmail.com
|
||||
repo_depends:
|
||||
- r-checkmate
|
||||
- r-data.table
|
||||
|
@ -18,8 +18,19 @@ repo_depends:
|
|||
- r-scales
|
||||
- r-sf
|
||||
- r-stringr
|
||||
repo_makedepends:
|
||||
- r-curl
|
||||
- r-gsignal
|
||||
- r-maps
|
||||
- r-ncdf4
|
||||
- r-pcict
|
||||
- r-reshape2
|
||||
- r-terra
|
||||
- r-testthat
|
||||
- r-vdiffr
|
||||
update_on:
|
||||
- regex: metR_([\d._-]+).tar.gz
|
||||
source: regex
|
||||
url: https://cran.r-project.org/package=metR
|
||||
- source: rpkgs
|
||||
pkgname: metR
|
||||
repo: cran
|
||||
md5: true
|
||||
- alias: r
|
||||
|
|
30
BioArchLinux/r-pcict/PKGBUILD
Normal file
30
BioArchLinux/r-pcict/PKGBUILD
Normal file
|
@ -0,0 +1,30 @@
|
|||
# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com>
|
||||
|
||||
_pkgname=PCICt
|
||||
_pkgver=0.5-4.4
|
||||
pkgname=r-${_pkgname,,}
|
||||
pkgver=${_pkgver//-/.}
|
||||
pkgrel=1
|
||||
pkgdesc="Implementation of POSIXct Work-Alike for 365 and 360 Day Calendars"
|
||||
arch=(x86_64)
|
||||
url="https://cran.r-project.org/package=$_pkgname"
|
||||
license=('GPL-2.0-only')
|
||||
depends=(
|
||||
r
|
||||
)
|
||||
optdepends=(
|
||||
r-runit
|
||||
)
|
||||
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
|
||||
md5sums=('7397539d6d582bde58d98cd050a2c159')
|
||||
b2sums=('81213ed6d5cc043174f123f5282caa79a0971fe2ec3bb72c1eab72ad8070e74bedf6fc3291522ee6d951b9cb871140f78eaa6460dadc9e3e90b36ec8090f800b')
|
||||
|
||||
build() {
|
||||
mkdir build
|
||||
R CMD INSTALL -l build "$_pkgname"
|
||||
}
|
||||
|
||||
package() {
|
||||
install -d "$pkgdir/usr/lib/R/library"
|
||||
cp -a --no-preserve=ownership "build/$_pkgname" "$pkgdir/usr/lib/R/library"
|
||||
}
|
14
BioArchLinux/r-pcict/lilac.py
Normal file
14
BioArchLinux/r-pcict/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()
|
10
BioArchLinux/r-pcict/lilac.yaml
Normal file
10
BioArchLinux/r-pcict/lilac.yaml
Normal file
|
@ -0,0 +1,10 @@
|
|||
build_prefix: extra-x86_64
|
||||
maintainers:
|
||||
- github: pekkarr
|
||||
email: pekkarr@protonmail.com
|
||||
update_on:
|
||||
- source: rpkgs
|
||||
pkgname: PCICt
|
||||
repo: cran
|
||||
md5: true
|
||||
- alias: r
|
Loading…
Add table
Reference in a new issue