mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
r-bcseq: use metadata checks
This commit is contained in:
parent
63068edb9f
commit
c38651057a
3 changed files with 21 additions and 19 deletions
|
@ -3,14 +3,13 @@
|
||||||
_pkgname=bcSeq
|
_pkgname=bcSeq
|
||||||
_pkgver=1.24.0
|
_pkgver=1.24.0
|
||||||
pkgname=r-${_pkgname,,}
|
pkgname=r-${_pkgname,,}
|
||||||
pkgver=1.24.0
|
pkgver=${_pkgver//-/.}
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc='Fast Sequence Mapping in High-Throughput shRNA and CRISPR Screens'
|
pkgdesc="Fast Sequence Mapping in High-Throughput shRNA and CRISPR Screens"
|
||||||
arch=('x86_64')
|
arch=(x86_64)
|
||||||
url="https://bioconductor.org/packages/${_pkgname}"
|
url="https://bioconductor.org/packages/$_pkgname"
|
||||||
license=('GPL')
|
license=('GPL-2.0-or-later')
|
||||||
depends=(
|
depends=(
|
||||||
r
|
|
||||||
r-biostrings
|
r-biostrings
|
||||||
r-rcpp
|
r-rcpp
|
||||||
)
|
)
|
||||||
|
@ -18,14 +17,15 @@ optdepends=(
|
||||||
r-knitr
|
r-knitr
|
||||||
)
|
)
|
||||||
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=('338514ad92f5db3bcfecd825ef75a3fed1b503f2821ad3cc9c94236563821914')
|
md5sums=('e582b114bc4743a328b6ada2953a74da')
|
||||||
|
b2sums=('fbc7c77d884307b41b040199be7ab592b1fef0ce82acac0069367db039e62757abad8c96f591fbd40f0e2f2c0140e188f340de002d5ed3358b8c84f0a2757002')
|
||||||
|
|
||||||
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()
|
||||||
|
|
|
@ -6,7 +6,8 @@ repo_depends:
|
||||||
- r-biostrings
|
- r-biostrings
|
||||||
- r-rcpp
|
- r-rcpp
|
||||||
update_on:
|
update_on:
|
||||||
- regex: bcSeq_([\d._-]+).tar.gz
|
- source: rpkgs
|
||||||
source: regex
|
pkgname: bcSeq
|
||||||
url: https://bioconductor.org/packages/bcSeq
|
repo: bioc
|
||||||
|
md5: true
|
||||||
- alias: r
|
- alias: r
|
||||||
|
|
Loading…
Add table
Reference in a new issue