mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
r-rsubread: use metadata checks
This commit is contained in:
parent
79780591ca
commit
2fb5bb5aa4
3 changed files with 30 additions and 18 deletions
|
@ -3,24 +3,26 @@
|
|||
_pkgname=Rsubread
|
||||
_pkgver=2.16.0
|
||||
pkgname=r-${_pkgname,,}
|
||||
pkgver=2.16.0
|
||||
pkgver=${_pkgver//-/.}
|
||||
pkgrel=1
|
||||
pkgdesc='Mapping, quantification and variant analysis of sequencing data'
|
||||
arch=('x86_64')
|
||||
url="https://bioconductor.org/packages/${_pkgname}"
|
||||
license=('GPL')
|
||||
pkgdesc="Mapping, quantification and variant analysis of sequencing data"
|
||||
arch=(x86_64)
|
||||
url="https://bioconductor.org/packages/$_pkgname"
|
||||
license=(GPL3)
|
||||
depends=(
|
||||
r
|
||||
zlib
|
||||
)
|
||||
source=("https://bioconductor.org/packages/release/bioc/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
|
||||
sha256sums=('8d6cf3be423626b190a00f718c833cdc480fb7b37ab817dbc80940d60646182e')
|
||||
md5sums=('317b014b1e15527a762636afb662dcca')
|
||||
b2sums=('e97f5adef823e223a7011e924a06f2a7d611eab27322a90af545e313eb5d2e92f36f060f27671aa4a2bf1c7ae87fc1c09f6479fc6a2a6d030e540b5a54799e8b')
|
||||
|
||||
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,16 @@
|
|||
#!/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,
|
||||
expect_license = "GPL (>=3)",
|
||||
)
|
||||
|
||||
def post_build():
|
||||
git_pkgbuild_commit()
|
||||
|
|
|
@ -3,7 +3,13 @@ maintainers:
|
|||
- github: starsareintherose
|
||||
email: kuoi@bioarchlinux.org
|
||||
update_on:
|
||||
- regex: Rsubread_([\d._-]+).tar.gz
|
||||
source: regex
|
||||
url: https://bioconductor.org/packages/Rsubread
|
||||
- source: rpkgs
|
||||
pkgname: Rsubread
|
||||
repo: bioc
|
||||
md5: true
|
||||
- alias: r
|
||||
- source: alpm
|
||||
alpm: zlib
|
||||
repo: core
|
||||
provided: libz.so
|
||||
strip_release: true
|
||||
|
|
Loading…
Add table
Reference in a new issue