mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
fix gap depends
This commit is contained in:
parent
9a59cd73f0
commit
4b9a8f92c8
5 changed files with 55 additions and 0 deletions
26
BioArchLinux/r-gap.datasets/PKGBUILD
Normal file
26
BioArchLinux/r-gap.datasets/PKGBUILD
Normal file
|
@ -0,0 +1,26 @@
|
|||
# Maintainer: Guoyi Zhang <guoyizhang at malacology dot net>
|
||||
|
||||
_pkgname=gap.datasets
|
||||
_pkgver=0.0.5
|
||||
pkgname=r-${_pkgname,,}
|
||||
pkgver=${_pkgver//[:-]/.}
|
||||
pkgrel=1
|
||||
pkgdesc="Datasets for 'gap'"
|
||||
arch=('any')
|
||||
url="https://cran.r-project.org/package=${_pkgname}"
|
||||
license=('GPL')
|
||||
depends=(
|
||||
r
|
||||
)
|
||||
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
|
||||
sha256sums=('a')
|
||||
|
||||
build() {
|
||||
R CMD INSTALL ${_pkgname}_${_pkgver}.tar.gz -l "${srcdir}"
|
||||
}
|
||||
|
||||
package() {
|
||||
install -dm0755 "${pkgdir}/usr/lib/R/library"
|
||||
cp -a --no-preserve=ownership "${_pkgname}" "${pkgdir}/usr/lib/R/library"
|
||||
}
|
||||
# vim:set ts=2 sw=2 et:
|
12
BioArchLinux/r-gap.datasets/lilac.py
Normal file
12
BioArchLinux/r-gap.datasets/lilac.py
Normal file
|
@ -0,0 +1,12 @@
|
|||
#!/usr/bin/env python3
|
||||
from lilaclib import *
|
||||
|
||||
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('-', '.'))
|
||||
|
||||
def post_build():
|
||||
git_pkgbuild_commit()
|
8
BioArchLinux/r-gap.datasets/lilac.yaml
Normal file
8
BioArchLinux/r-gap.datasets/lilac.yaml
Normal file
|
@ -0,0 +1,8 @@
|
|||
build_prefix: extra-x86_64
|
||||
maintainers:
|
||||
- github: starsareintherose
|
||||
email: starsareintherose@outlook.com
|
||||
update_on:
|
||||
- regex: gap.datasets_([\d._-]+).tar.gz
|
||||
source: regex
|
||||
url: https://cran.r-project.org/package=gap.datasets
|
|
@ -11,6 +11,10 @@ url="https://cran.r-project.org/package=${_pkgname}"
|
|||
license=('GPL')
|
||||
depends=(
|
||||
r
|
||||
r-gap.datasets
|
||||
r-dplyr
|
||||
r-ggplot2
|
||||
r-plotly
|
||||
)
|
||||
optdepends=(
|
||||
r-bdsmatrix
|
||||
|
|
|
@ -2,6 +2,11 @@ build_prefix: extra-x86_64
|
|||
maintainers:
|
||||
- github: starsareintherose
|
||||
email: starsareintherose@outlook.com
|
||||
repo_depends:
|
||||
- r-gap.datasets
|
||||
- r-dplyr
|
||||
- r-ggplot2
|
||||
- r-plotly
|
||||
update_on:
|
||||
- regex: gap_([\d._-]+).tar.gz
|
||||
source: regex
|
||||
|
|
Loading…
Add table
Reference in a new issue