mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
r-ncmeta: fix depends
This commit is contained in:
parent
79c69a6e1f
commit
5ead63882f
5 changed files with 79 additions and 4 deletions
46
BioArchLinux/r-cftime/PKGBUILD
Normal file
46
BioArchLinux/r-cftime/PKGBUILD
Normal file
|
@ -0,0 +1,46 @@
|
|||
# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com>
|
||||
|
||||
_pkgname=CFtime
|
||||
_pkgver=1.3.0
|
||||
pkgname=r-${_pkgname,,}
|
||||
pkgver=${_pkgver//-/.}
|
||||
pkgrel=1
|
||||
pkgdesc="Using CF-Compliant Calendars with Climate Projection Data"
|
||||
arch=(any)
|
||||
url="https://cran.r-project.org/package=$_pkgname"
|
||||
license=('MIT')
|
||||
depends=(
|
||||
r
|
||||
)
|
||||
checkdepends=(
|
||||
r-ncdf4
|
||||
r-testthat
|
||||
)
|
||||
optdepends=(
|
||||
r-knitr
|
||||
r-ncdf4
|
||||
r-rmarkdown
|
||||
r-rnetcdf
|
||||
r-testthat
|
||||
)
|
||||
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
|
||||
md5sums=('1b0fe20341dfc1801c49dd14a35fe6b6')
|
||||
b2sums=('d3da058fdd924160b4409f75b5935991aa50ccbbe9aa13c1542782896e9142fba8602a49cf9634fd600f2e302214ff78138949e6e8830c7c84424ca306bbafd7')
|
||||
|
||||
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"
|
||||
}
|
14
BioArchLinux/r-cftime/lilac.py
Normal file
14
BioArchLinux/r-cftime/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()
|
13
BioArchLinux/r-cftime/lilac.yaml
Normal file
13
BioArchLinux/r-cftime/lilac.yaml
Normal file
|
@ -0,0 +1,13 @@
|
|||
build_prefix: extra-x86_64
|
||||
maintainers:
|
||||
- github: pekkarr
|
||||
email: pekkarr@protonmail.com
|
||||
repo_makedepends:
|
||||
- r-ncdf4
|
||||
- r-testthat
|
||||
update_on:
|
||||
- source: rpkgs
|
||||
pkgname: CFtime
|
||||
repo: cran
|
||||
md5: true
|
||||
- alias: r
|
|
@ -1,15 +1,16 @@
|
|||
# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com>
|
||||
|
||||
_pkgname=ncmeta
|
||||
_pkgver=0.3.6
|
||||
_pkgver=0.4.0
|
||||
pkgname=r-${_pkgname,,}
|
||||
pkgver=${_pkgver//-/.}
|
||||
pkgrel=1
|
||||
pkgrel=0
|
||||
pkgdesc="Straightforward 'NetCDF' Metadata"
|
||||
arch=(any)
|
||||
url="https://cran.r-project.org/package=$_pkgname"
|
||||
license=('GPL-3.0-only')
|
||||
depends=(
|
||||
r-cftime
|
||||
r-dplyr
|
||||
r-rlang
|
||||
r-rnetcdf
|
||||
|
@ -24,8 +25,8 @@ optdepends=(
|
|||
r-testthat
|
||||
)
|
||||
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
|
||||
md5sums=('e38fff220a5ed49a5304684562b56ac9')
|
||||
b2sums=('b89de032ea6d7e44aa180c34c47f322cc3ed2b761c277ac4b6a345c7f802b278820ab16769c1be4e88911d55f7dd2893f2e2609a8295d2f8c1b1d39409e9bddc')
|
||||
md5sums=('10a98935f8ef628b71c8f93d5e0e3224')
|
||||
b2sums=('d5c3b7df301efa2af365557c9047de80bc3cca2d7a8dbf888e90e6c04daa34d00396f2d2d347b4bfe521cfbb062589bce4c37b3d7e2c0488aea6c9a5d55d19e4')
|
||||
|
||||
build() {
|
||||
mkdir build
|
||||
|
|
|
@ -3,6 +3,7 @@ maintainers:
|
|||
- github: pekkarr
|
||||
email: pekkarr@protonmail.com
|
||||
repo_depends:
|
||||
- r-cftime
|
||||
- r-dplyr
|
||||
- r-rlang
|
||||
- r-rnetcdf
|
||||
|
|
Loading…
Add table
Reference in a new issue