mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
r-multipanelfigure: use metadata checks
This commit is contained in:
parent
83a7a9f1de
commit
3d57e80b87
3 changed files with 24 additions and 28 deletions
|
@ -1,21 +1,18 @@
|
|||
# Maintainer: Guoyi Zhang <guoyizhang at malacology dot net>
|
||||
|
||||
_pkgname=multipanelfigure
|
||||
_pkgver=2.1.2
|
||||
_pkgver=2.1.5
|
||||
pkgname=r-${_pkgname,,}
|
||||
pkgver=2.1.2
|
||||
pkgrel=8
|
||||
pkgdesc='Infrastructure to Assemble Multi-Panel Figures (from Grobs)'
|
||||
arch=('any')
|
||||
url="https://cran.r-project.org/package=${_pkgname}"
|
||||
license=('GPL')
|
||||
pkgver=${_pkgver//-/.}
|
||||
pkgrel=0
|
||||
pkgdesc="Infrastructure to Assemble Multi-Panel Figures (from Grobs)"
|
||||
arch=(any)
|
||||
url="https://cran.r-project.org/package=$_pkgname"
|
||||
license=('GPL-3.0-or-later')
|
||||
depends=(
|
||||
r
|
||||
r-assertive.base
|
||||
r-assertive.files
|
||||
r-assertive.numbers
|
||||
r-assertive.properties
|
||||
r-assertive.types
|
||||
r-ggplot2
|
||||
r-gridgraphics
|
||||
r-gtable
|
||||
|
@ -25,23 +22,22 @@ depends=(
|
|||
)
|
||||
optdepends=(
|
||||
r-complexheatmap
|
||||
r-grdevices
|
||||
r-knitr
|
||||
r-lattice
|
||||
r-markdown
|
||||
r-rmarkdown
|
||||
r-roxygen2
|
||||
r-venndiagram
|
||||
)
|
||||
source=("https://cran.r-project.org/src/contrib/Archive/${_pkgname}/${_pkgname}_${_pkgver}.tar.gz")
|
||||
sha256sums=('eca98888d2f7c8887764443633bd557e9100f73694b2e5df68a63b304f5ba532')
|
||||
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
|
||||
md5sums=('e80c2af7114635a3cf1d01adf7d0207e')
|
||||
b2sums=('730435fc8dd88ba096bafa7f2d8474cb2b99f361ef2353a0ad144602942709629e83c95c3b887fb5fc3b368eb7de2cbe62606e85e5376f29f472e3b32f92e5d6')
|
||||
|
||||
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,13 @@
|
|||
#!/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()
|
||||
|
|
|
@ -6,8 +6,6 @@ repo_depends:
|
|||
- r-assertive.base
|
||||
- r-assertive.files
|
||||
- r-assertive.numbers
|
||||
- r-assertive.properties
|
||||
- r-assertive.types
|
||||
- r-ggplot2
|
||||
- r-gridgraphics
|
||||
- r-gtable
|
||||
|
@ -15,7 +13,8 @@ repo_depends:
|
|||
- r-magrittr
|
||||
- r-stringi
|
||||
update_on:
|
||||
- regex: multipanelfigure_([\d._-]+).tar.gz
|
||||
source: regex
|
||||
url: https://cran.r-project.org/src/contrib/Archive/multipanelfigure
|
||||
- source: rpkgs
|
||||
pkgname: multipanelfigure
|
||||
repo: cran
|
||||
md5: true
|
||||
- alias: r
|
||||
|
|
Loading…
Add table
Reference in a new issue