mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
r-tiledb: fix depends, use metadata checks
This commit is contained in:
parent
6306589e12
commit
f8080db41e
3 changed files with 59 additions and 26 deletions
|
@ -1,26 +1,36 @@
|
||||||
# system requirements: A C++17 compiler is required, and on macOScompilation for version 11.14 is required. Optionally cmake(only when TileDB source build selected), git (only when TileDBsource build selected); on x86_64 and M1 platforms pre-builtTileDB Embedded libraries are available at GitHub and are usedif no TileDB installation is detected, and no other option tobuild or download was specified by the user.
|
# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com>
|
||||||
# Maintainer: Guoyi Zhang <guoyizhang at malacology dot net>
|
# Contributor: Guoyi Zhang <guoyizhang at malacology dot net>
|
||||||
|
|
||||||
_pkgname=tiledb
|
_pkgname=tiledb
|
||||||
_pkgver=0.21.0
|
_pkgver=0.21.1
|
||||||
pkgname=r-${_pkgname,,}
|
pkgname=r-${_pkgname,,}
|
||||||
pkgver=0.21.0
|
pkgver=${_pkgver//-/.}
|
||||||
pkgrel=1
|
pkgrel=0
|
||||||
pkgdesc='Universal Storage Engine for Sparse and Dense Multidimensional Arrays'
|
pkgdesc="Universal Storage Engine for Sparse and Dense Multidimensional Arrays"
|
||||||
arch=('x86_64')
|
arch=(x86_64)
|
||||||
url="https://cran.r-project.org/package=${_pkgname}"
|
url="https://cran.r-project.org/package=${_pkgname}"
|
||||||
license=('MIT')
|
license=(MIT)
|
||||||
depends=(
|
depends=(
|
||||||
r
|
|
||||||
r-nanotime
|
r-nanotime
|
||||||
r-rcpp
|
r-rcpp
|
||||||
r-spdl
|
r-spdl
|
||||||
|
tiledb
|
||||||
|
)
|
||||||
|
makedepends=(
|
||||||
|
r-rcppint64
|
||||||
|
)
|
||||||
|
checkdepends=(
|
||||||
|
r-arrow
|
||||||
|
r-data.table
|
||||||
|
r-nycflights13
|
||||||
|
r-palmerpenguins
|
||||||
|
r-tinytest
|
||||||
)
|
)
|
||||||
optdepends=(
|
optdepends=(
|
||||||
|
r-arrow
|
||||||
r-bit64
|
r-bit64
|
||||||
r-curl
|
r-curl
|
||||||
r-data.table
|
r-data.table
|
||||||
r-matrix
|
|
||||||
r-nycflights13
|
r-nycflights13
|
||||||
r-palmerpenguins
|
r-palmerpenguins
|
||||||
r-simplermarkdown
|
r-simplermarkdown
|
||||||
|
@ -28,15 +38,23 @@ optdepends=(
|
||||||
r-tinytest
|
r-tinytest
|
||||||
)
|
)
|
||||||
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
|
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
|
||||||
sha256sums=('751bf188a9cc66f9facd88f7a651e8b92a99fffca211f73d92352066c4684364')
|
md5sums=('1302cc88d721a045769384062c48b0f9')
|
||||||
|
sha256sums=('95ffa28b08d1dc2c33772d9d1a1cb8228883a8fa6936ccde45161d15883df568')
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
R CMD INSTALL ${_pkgname}_${_pkgver}.tar.gz -l "${srcdir}"
|
mkdir -p build
|
||||||
|
R CMD INSTALL "$_pkgname" -l build
|
||||||
|
}
|
||||||
|
|
||||||
|
check() {
|
||||||
|
cd "$_pkgname/tests"
|
||||||
|
R_LIBS="$srcdir/build" Rscript --vanilla tinytest.R
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
install -dm0755 "${pkgdir}/usr/lib/R/library"
|
install -d "$pkgdir/usr/lib/R/library"
|
||||||
cp -a --no-preserve=ownership "${_pkgname}" "${pkgdir}/usr/lib/R/library"
|
cp -a --no-preserve=ownership "build/$_pkgname" "$pkgdir/usr/lib/R/library"
|
||||||
install -Dm644 "${_pkgname}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
|
|
||||||
|
install -d "$pkgdir/usr/share/licenses/$pkgname"
|
||||||
|
ln -s "/usr/lib/R/library/$_pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname"
|
||||||
}
|
}
|
||||||
# vim:set ts=2 sw=2 et:
|
|
||||||
|
|
|
@ -1,12 +1,16 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
from lilaclib import *
|
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():
|
def pre_build():
|
||||||
for line in edit_file('PKGBUILD'):
|
r_pre_build(
|
||||||
if line.startswith('_pkgver='):
|
_G,
|
||||||
line = f'_pkgver={_G.newver}'
|
expect_systemrequirements = "A C++17 compiler is required, and on macOS compilation for version 11.14 is required. Optionally cmake (only when TileDB source build selected), git (only when TileDB source build selected); on x86_64 and M1 platforms pre-built TileDB Embedded libraries are available at GitHub and are used if no TileDB installation is detected, and no other option to build or download was specified by the user.",
|
||||||
print(line)
|
)
|
||||||
update_pkgver_and_pkgrel(_G.newver.replace(':', '.').replace('-', '.'))
|
|
||||||
|
|
||||||
def post_build():
|
def post_build():
|
||||||
git_pkgbuild_commit()
|
git_pkgbuild_commit()
|
||||||
|
|
|
@ -1,13 +1,24 @@
|
||||||
build_prefix: extra-x86_64
|
build_prefix: extra-x86_64
|
||||||
maintainers:
|
maintainers:
|
||||||
- github: starsareintherose
|
- github: pekkarr
|
||||||
email: kuoi@bioarchlinux.org
|
email: pekkarr@protonmail.com
|
||||||
repo_depends:
|
repo_depends:
|
||||||
- r-nanotime
|
- r-nanotime
|
||||||
- r-rcpp
|
- r-rcpp
|
||||||
- r-spdl
|
- r-spdl
|
||||||
|
- tiledb
|
||||||
|
repo_makedepends:
|
||||||
|
- r-rcppint64
|
||||||
|
- r-arrow
|
||||||
|
- r-data.table
|
||||||
|
- r-nycflights13
|
||||||
|
- r-palmerpenguins
|
||||||
|
- r-tinytest
|
||||||
update_on:
|
update_on:
|
||||||
- regex: tiledb_([\d._-]+).tar.gz
|
- source: rpkgs
|
||||||
source: regex
|
pkgname: tiledb
|
||||||
url: https://cran.r-project.org/package=tiledb
|
repo: cran
|
||||||
|
md5: true
|
||||||
- alias: r
|
- alias: r
|
||||||
|
update_on_build:
|
||||||
|
- pkgbase: tiledb
|
||||||
|
|
Loading…
Add table
Reference in a new issue