mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
r-future.apply: use metadata checks, push to AUR
This commit is contained in:
parent
074ed9c963
commit
7f24802979
3 changed files with 25 additions and 22 deletions
|
@ -1,36 +1,36 @@
|
||||||
# Maintainer: Guoyi Zhang <guoyizhang at malacology dot net>
|
# Maintainer: Guoyi Zhang <guoyizhang at malacology dot net>
|
||||||
|
# Contributor: peippo <christoph+aur@christophfink.com>
|
||||||
|
# Contributor: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com
|
||||||
|
# Contributor: Grey Christoforo <first name at last name dot net>
|
||||||
|
|
||||||
_pkgname=future.apply
|
_pkgname=future.apply
|
||||||
_pkgver=1.11.3
|
_pkgver=1.11.3
|
||||||
pkgname=r-${_pkgname,,}
|
pkgname=r-${_pkgname,,}
|
||||||
pkgver=1.11.3
|
pkgver=${_pkgver//-/.}
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc='Apply Function to Elements in Parallel using Futures'
|
pkgdesc="Apply Function to Elements in Parallel using Futures"
|
||||||
arch=('any')
|
arch=(any)
|
||||||
url="https://cran.r-project.org/package=${_pkgname}"
|
url="https://cran.r-project.org/package=$_pkgname"
|
||||||
license=('GPL')
|
license=('GPL-2.0-or-later')
|
||||||
depends=(
|
depends=(
|
||||||
r
|
|
||||||
r-future
|
r-future
|
||||||
r-globals
|
r-globals
|
||||||
)
|
)
|
||||||
optdepends=(
|
optdepends=(
|
||||||
r-datasets
|
|
||||||
r-listenv
|
r-listenv
|
||||||
r-markdown
|
r-markdown
|
||||||
r-r.rsp
|
r-r.rsp
|
||||||
r-stats
|
|
||||||
r-tools
|
|
||||||
)
|
)
|
||||||
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=('e6e8858509e6681d71823a5d6600702ea91ee72ad0da4476c993580706db85d0')
|
md5sums=('264da036546e5c295724d130c2be3ce9')
|
||||||
|
b2sums=('da916f440caa59695b9abb348cfc1d0621e2014e1992e3ea13044ce8baa9ddd200a8da489fa6a319916b1e589231a317ba0b71cce317f54fde4473a1f3f78526')
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
R CMD INSTALL ${_pkgname}_${_pkgver}.tar.gz -l "${srcdir}"
|
mkdir build
|
||||||
|
R CMD INSTALL -l build "$_pkgname"
|
||||||
}
|
}
|
||||||
|
|
||||||
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"
|
||||||
}
|
}
|
||||||
# vim:set ts=2 sw=2 et:
|
|
||||||
|
|
|
@ -1,12 +1,14 @@
|
||||||
#!/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(_G)
|
||||||
if line.startswith('_pkgver='):
|
|
||||||
line = f'_pkgver={_G.newver}'
|
|
||||||
print(line)
|
|
||||||
update_pkgver_and_pkgrel(_G.newver.replace(':', '.').replace('-', '.'))
|
|
||||||
|
|
||||||
def post_build():
|
def post_build():
|
||||||
git_pkgbuild_commit()
|
git_pkgbuild_commit()
|
||||||
|
update_aur_repo()
|
||||||
|
|
|
@ -6,7 +6,8 @@ repo_depends:
|
||||||
- r-future
|
- r-future
|
||||||
- r-globals
|
- r-globals
|
||||||
update_on:
|
update_on:
|
||||||
- regex: future.apply_([\d._-]+).tar.gz
|
- source: rpkgs
|
||||||
source: regex
|
pkgname: future.apply
|
||||||
url: https://cran.r-project.org/package=future.apply
|
repo: cran
|
||||||
|
md5: true
|
||||||
- alias: r
|
- alias: r
|
||||||
|
|
Loading…
Add table
Reference in a new issue