mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
r-multicrispr: use metadata checks
This commit is contained in:
parent
e6d3077c07
commit
83a7a9f1de
3 changed files with 31 additions and 21 deletions
|
@ -3,15 +3,18 @@
|
||||||
_pkgname=multicrispr
|
_pkgname=multicrispr
|
||||||
_pkgver=1.12.3
|
_pkgver=1.12.3
|
||||||
pkgname=r-${_pkgname,,}
|
pkgname=r-${_pkgname,,}
|
||||||
pkgver=1.12.3
|
pkgver=${_pkgver//-/.}
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc='Multi-locus multi-purpose Crispr/Cas design'
|
pkgdesc="Multi-locus multi-purpose Crispr/Cas design"
|
||||||
arch=('any')
|
arch=(any)
|
||||||
url="https://bioconductor.org/packages/${_pkgname}"
|
url="https://bioconductor.org/packages/$_pkgname"
|
||||||
license=('GPL')
|
license=('GPL-2.0-only')
|
||||||
depends=(
|
depends=(
|
||||||
r
|
r-assertive.base
|
||||||
r-assertive
|
r-assertive.files
|
||||||
|
r-assertive.numbers
|
||||||
|
r-assertive.reflection
|
||||||
|
r-assertive.sets
|
||||||
r-biocgenerics
|
r-biocgenerics
|
||||||
r-biostrings
|
r-biostrings
|
||||||
r-bsgenome
|
r-bsgenome
|
||||||
|
@ -46,14 +49,15 @@ optdepends=(
|
||||||
r-txdb.mmusculus.ucsc.mm10.knowngene
|
r-txdb.mmusculus.ucsc.mm10.knowngene
|
||||||
)
|
)
|
||||||
source=("https://bioconductor.org/packages/release/bioc/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
|
source=("https://bioconductor.org/packages/release/bioc/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
|
||||||
sha256sums=('abf0ec2d4d8e9030e86a42449b5729a08e292040e4af711bcc72ca72bbdb508d')
|
md5sums=('d0bbc847e39772348376d944c884290a')
|
||||||
|
b2sums=('ed79977a043b0bf57b139d7f304568fd88d7bb7317c673e58f459908fb0330c545243798cdaec86fd56bdf3f0c2e67270e67e0f8f341d280b35b130d4d898be8')
|
||||||
|
|
||||||
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,13 @@
|
||||||
#!/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()
|
||||||
|
|
|
@ -3,7 +3,11 @@ maintainers:
|
||||||
- github: starsareintherose
|
- github: starsareintherose
|
||||||
email: kuoi@bioarchlinux.org
|
email: kuoi@bioarchlinux.org
|
||||||
repo_depends:
|
repo_depends:
|
||||||
- r-assertive
|
- r-assertive.base
|
||||||
|
- r-assertive.files
|
||||||
|
- r-assertive.numbers
|
||||||
|
- r-assertive.reflection
|
||||||
|
- r-assertive.sets
|
||||||
- r-biocgenerics
|
- r-biocgenerics
|
||||||
- r-biostrings
|
- r-biostrings
|
||||||
- r-bsgenome
|
- r-bsgenome
|
||||||
|
@ -23,7 +27,8 @@ repo_depends:
|
||||||
- r-tidyr
|
- r-tidyr
|
||||||
- r-tidyselect
|
- r-tidyselect
|
||||||
update_on:
|
update_on:
|
||||||
- regex: multicrispr_([\d._-]+).tar.gz
|
- source: rpkgs
|
||||||
source: regex
|
pkgname: multicrispr
|
||||||
url: https://bioconductor.org/packages/multicrispr
|
repo: bioc
|
||||||
|
md5: true
|
||||||
- alias: r
|
- alias: r
|
||||||
|
|
Loading…
Add table
Reference in a new issue