fix ggmsal depends

This commit is contained in:
Kuoi 2022-05-28 15:56:46 +01:00
parent 4b9a8f92c8
commit 28df37e5b3
5 changed files with 61 additions and 1 deletions

View file

@ -22,6 +22,8 @@ depends=(
r-rcolorbrewer
r-seqmagick
r-tidyr
r-statebins
r-ggtree
)
optdepends=(
r-ape
@ -29,7 +31,6 @@ optdepends=(
r-cowplot
r-gggenes
r-ggnewscale
r-ggtree
r-ggtreeextra
r-kableextra
r-knitr

View file

@ -14,6 +14,8 @@ repo_depends:
- r-rcolorbrewer
- r-seqmagick
- r-tidyr
- r-statebins
- r-ggtree
update_on:
- regex: ggmsa_([\d._-]+).tar.gz
source: regex

View file

@ -0,0 +1,35 @@
# Maintainer: Guoyi Zhang <guoyizhang at malacology dot net>
_pkgname=statebins
_pkgver=1.4.0
pkgname=r-${_pkgname,,}
pkgver=${_pkgver//[:-]/.}
pkgrel=1
pkgdesc='Create United States Uniform Cartogram Heatmaps'
arch=('any')
url="https://cran.r-project.org/package=${_pkgname}"
license=('MIT')
depends=(
r
r-ggplot2
r-scales
)
optdepends=(
r-covr
r-rcolorbrewer
r-tinytest
r-viridis
)
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"
install -Dm644 "${_pkgname}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
# vim:set ts=2 sw=2 et:

View 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()

View file

@ -0,0 +1,10 @@
build_prefix: extra-x86_64
maintainers:
- github: starsareintherose
repo_depends:
- r-ggplot2
- r-scales
update_on:
- regex: statebins_([\d._-]+).tar.gz
source: regex
url: https://cran.r-project.org/package=statebins