mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
r-diffcyt: fix build by rebuilding r-rprotobuflib, use metadata checks
This commit is contained in:
parent
ba9a41dd29
commit
6f8dd8559f
4 changed files with 27 additions and 21 deletions
|
@ -1,16 +1,15 @@
|
|||
# Maintainer: Guoyi Zhang <guoyizhang at malacology dot net>
|
||||
|
||||
_pkgname=diffcyt
|
||||
_pkgver=1.22.0
|
||||
_pkgver=1.22.1
|
||||
pkgname=r-${_pkgname,,}
|
||||
pkgver=1.22.0
|
||||
pkgrel=1
|
||||
pkgdesc='Differential discovery in high-dimensional cytometry via high-resolution clustering'
|
||||
arch=('any')
|
||||
url="https://bioconductor.org/packages/${_pkgname}"
|
||||
pkgver=${_pkgver//-/.}
|
||||
pkgrel=0
|
||||
pkgdesc="Differential discovery in high-dimensional cytometry via high-resolution clustering"
|
||||
arch=(any)
|
||||
url="https://bioconductor.org/packages/$_pkgname"
|
||||
license=('MIT')
|
||||
depends=(
|
||||
r
|
||||
r-circlize
|
||||
r-complexheatmap
|
||||
r-dplyr
|
||||
|
@ -35,15 +34,18 @@ optdepends=(
|
|||
r-testthat
|
||||
)
|
||||
source=("https://bioconductor.org/packages/release/bioc/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
|
||||
sha256sums=('b1b31f4d655d433a0879aa637ac145e77ca4053b1c43b4cf163509d5deff6fcc')
|
||||
md5sums=('44b02895aa252ca092777135cb0edede')
|
||||
b2sums=('ca4f46b54b9d4c2e70dc13ebf4c85f9c2c1c2d812e433f1537c8315e9e81de7fd4f0fdcb5a2c69c71d77ff49b5c82b3704b0cc02ec08c6fb79cd76a2047066fa')
|
||||
|
||||
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 -Dm644 "${_pkgname}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
|
||||
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"
|
||||
}
|
||||
# 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()
|
||||
|
|
|
@ -18,7 +18,8 @@ repo_depends:
|
|||
- r-summarizedexperiment
|
||||
- r-tidyr
|
||||
update_on:
|
||||
- regex: diffcyt_([\d._-]+).tar.gz
|
||||
source: regex
|
||||
url: https://bioconductor.org/packages/diffcyt
|
||||
- source: rpkgs
|
||||
pkgname: diffcyt
|
||||
repo: bioc
|
||||
md5: true
|
||||
- alias: r
|
||||
|
|
|
@ -13,3 +13,5 @@ update_on:
|
|||
repo: extra
|
||||
provided: libprotobuf.so
|
||||
strip_release: true
|
||||
- source: manual
|
||||
manual: 1
|
||||
|
|
Loading…
Add table
Reference in a new issue