mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
r-sqldataframe: fix depends, use metadata checks
This commit is contained in:
parent
7608af4105
commit
f888c64b6c
9 changed files with 186 additions and 33 deletions
39
BioArchLinux/r-adbcdrivermanager/PKGBUILD
Normal file
39
BioArchLinux/r-adbcdrivermanager/PKGBUILD
Normal file
|
@ -0,0 +1,39 @@
|
|||
# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com>
|
||||
|
||||
_pkgname=adbcdrivermanager
|
||||
_pkgver=0.11.0
|
||||
pkgname=r-${_pkgname,,}
|
||||
pkgver=${_pkgver//-/.}
|
||||
pkgrel=1
|
||||
pkgdesc="'Arrow' Database Connectivity ('ADBC') Driver Manager"
|
||||
arch=(x86_64)
|
||||
url="https://cran.r-project.org/package=$_pkgname"
|
||||
license=(Apache)
|
||||
depends=(
|
||||
r-nanoarrow
|
||||
)
|
||||
checkdepends=(
|
||||
r-testthat
|
||||
)
|
||||
optdepends=(
|
||||
r-testthat
|
||||
r-withr
|
||||
)
|
||||
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
|
||||
md5sums=('dd000875d9a46549f07a4cf090ba5b37')
|
||||
b2sums=('b222c9a4541318cb7af9746490c8392ceddc3618b05805c32896f28be7d6dc904b5c08b7be6acdbf386084e663075f95821d0cd8da227e75ce41bb0d651dd69c')
|
||||
|
||||
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-adbcdrivermanager/lilac.py
Normal file
14
BioArchLinux/r-adbcdrivermanager/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()
|
14
BioArchLinux/r-adbcdrivermanager/lilac.yaml
Normal file
14
BioArchLinux/r-adbcdrivermanager/lilac.yaml
Normal file
|
@ -0,0 +1,14 @@
|
|||
build_prefix: extra-x86_64
|
||||
maintainers:
|
||||
- github: pekkarr
|
||||
email: pekkarr@protonmail.com
|
||||
repo_depends:
|
||||
- r-nanoarrow
|
||||
repo_makedepends:
|
||||
- r-testthat
|
||||
update_on:
|
||||
- source: rpkgs
|
||||
pkgname: adbcdrivermanager
|
||||
repo: cran
|
||||
md5: true
|
||||
- alias: r
|
56
BioArchLinux/r-duckdb/PKGBUILD
Normal file
56
BioArchLinux/r-duckdb/PKGBUILD
Normal file
|
@ -0,0 +1,56 @@
|
|||
# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com>
|
||||
|
||||
_pkgname=duckdb
|
||||
_pkgver=0.10.2
|
||||
pkgname=r-${_pkgname,,}
|
||||
pkgver=${_pkgver//-/.}
|
||||
pkgrel=1
|
||||
pkgdesc="DBI Package for the DuckDB Database Management System"
|
||||
arch=(x86_64)
|
||||
url="https://cran.r-project.org/package=$_pkgname"
|
||||
license=('MIT')
|
||||
depends=(
|
||||
r-dbi
|
||||
)
|
||||
checkdepends=(
|
||||
r-adbcdrivermanager
|
||||
r-arrow
|
||||
r-dbplyr
|
||||
r-dplyr
|
||||
r-testthat
|
||||
)
|
||||
optdepends=(
|
||||
r-adbcdrivermanager
|
||||
r-arrow
|
||||
r-bit64
|
||||
r-callr
|
||||
r-dbitest
|
||||
r-dbplyr
|
||||
r-dplyr
|
||||
r-rlang
|
||||
r-testthat
|
||||
r-tibble
|
||||
r-vctrs
|
||||
r-withr
|
||||
)
|
||||
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
|
||||
md5sums=('21ba242d403bb35d30cb86c88770a0e9')
|
||||
b2sums=('8c14e2eed3d9744629611a82123213770c7ba327046851009f8de0feefb10c6abbb6f9bdab41c3af98a46a5290900a78387b326781209428f840100869d5afa1')
|
||||
|
||||
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-duckdb/lilac.py
Normal file
14
BioArchLinux/r-duckdb/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()
|
18
BioArchLinux/r-duckdb/lilac.yaml
Normal file
18
BioArchLinux/r-duckdb/lilac.yaml
Normal file
|
@ -0,0 +1,18 @@
|
|||
build_prefix: extra-x86_64
|
||||
maintainers:
|
||||
- github: pekkarr
|
||||
email: pekkarr@protonmail.com
|
||||
repo_depends:
|
||||
- r-dbi
|
||||
repo_makedepends:
|
||||
- r-adbcdrivermanager
|
||||
- r-arrow
|
||||
- r-dbplyr
|
||||
- r-dplyr
|
||||
- r-testthat
|
||||
update_on:
|
||||
- source: rpkgs
|
||||
pkgname: duckdb
|
||||
repo: cran
|
||||
md5: true
|
||||
- alias: r
|
|
@ -1,43 +1,38 @@
|
|||
# Maintainer: Guoyi Zhang <guoyizhang at malacology dot net>
|
||||
|
||||
_pkgname=SQLDataFrame
|
||||
_pkgver=1.16.1
|
||||
_pkgver=1.18.0
|
||||
pkgname=r-${_pkgname,,}
|
||||
pkgver=1.16.1
|
||||
pkgrel=2
|
||||
pkgdesc='Representation of SQL database in DataFrame metaphor'
|
||||
arch=('any')
|
||||
url="https://bioconductor.org/packages/${_pkgname}"
|
||||
license=('GPL')
|
||||
pkgver=${_pkgver//-/.}
|
||||
pkgrel=0
|
||||
pkgdesc="Representation of SQL tables in DataFrame metaphor"
|
||||
arch=(any)
|
||||
url="https://bioconductor.org/packages/$_pkgname"
|
||||
license=('LGPL-3.0-or-later')
|
||||
depends=(
|
||||
r
|
||||
r-biocgenerics
|
||||
r-dbi
|
||||
r-dbplyr
|
||||
r-dplyr
|
||||
r-lazyeval
|
||||
r-delayedarray
|
||||
r-duckdb
|
||||
r-rsqlite
|
||||
r-s4vectors
|
||||
r-tibble
|
||||
)
|
||||
optdepends=(
|
||||
r-bigrquery
|
||||
r-delayedarray
|
||||
r-genomicranges
|
||||
r-biocstyle
|
||||
r-knitr
|
||||
r-rmarkdown
|
||||
r-rmysql
|
||||
r-testthat
|
||||
)
|
||||
source=("https://bioconductor.org/packages/release/bioc/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
|
||||
sha256sums=('d48c2bcaa4fade62ead21689d2bfcfc8d7e835291ee25ec5ff6b69db0021354d')
|
||||
md5sums=('d3f3b42d554d7262bb6dedc1d362d9b3')
|
||||
b2sums=('3953beef5982876d7d55f6f28dbff4e27cce3c6fc8c2ea8fbc73d2bd236d15b5755da43bc72fa02e43c2ef5f2fd409106c34ae4d75f4f54bd1c461a3d298fa3f')
|
||||
|
||||
build() {
|
||||
R CMD INSTALL ${_pkgname}_${_pkgver}.tar.gz -l "${srcdir}"
|
||||
mkdir build
|
||||
R CMD INSTALL -l build "$_pkgname"
|
||||
}
|
||||
|
||||
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,16 @@
|
|||
#!/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,
|
||||
expect_license = "LGPL (>= 3); File LICENSE",
|
||||
)
|
||||
|
||||
def post_build():
|
||||
git_pkgbuild_commit()
|
||||
|
|
|
@ -5,14 +5,13 @@ maintainers:
|
|||
repo_depends:
|
||||
- r-biocgenerics
|
||||
- r-dbi
|
||||
- r-dbplyr
|
||||
- r-dplyr
|
||||
- r-lazyeval
|
||||
- r-delayedarray
|
||||
- r-duckdb
|
||||
- r-rsqlite
|
||||
- r-s4vectors
|
||||
- r-tibble
|
||||
update_on:
|
||||
- regex: SQLDataFrame_([\d._-]+).tar.gz
|
||||
source: regex
|
||||
url: https://bioconductor.org/packages/SQLDataFrame
|
||||
- source: rpkgs
|
||||
pkgname: SQLDataFrame
|
||||
repo: bioc
|
||||
md5: true
|
||||
- alias: r
|
||||
|
|
Loading…
Add table
Reference in a new issue