mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
r-ggfun: use metadata checks
This commit is contained in:
parent
0b86ccf8ee
commit
15b5a9f58e
4 changed files with 26 additions and 22 deletions
|
@ -1,16 +1,16 @@
|
|||
# Maintainer: Guoyi Zhang <guoyizhang at malacology dot net>
|
||||
# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com>
|
||||
# Contributor: Guoyi Zhang <guoyizhang at malacology dot net>
|
||||
|
||||
_pkgname=ggfun
|
||||
_pkgver=0.1.0
|
||||
_pkgver=0.1.1
|
||||
pkgname=r-${_pkgname,,}
|
||||
pkgver=0.1.0
|
||||
pkgrel=1
|
||||
pkgver=${_pkgver//-/.}
|
||||
pkgrel=0
|
||||
pkgdesc="Miscellaneous Functions for 'ggplot2'"
|
||||
arch=('any')
|
||||
arch=(any)
|
||||
url="https://cran.r-project.org/package=${_pkgname}"
|
||||
license=('Artistic2.0')
|
||||
license=(Artistic2.0)
|
||||
depends=(
|
||||
r
|
||||
r-ggplot2
|
||||
r-rlang
|
||||
)
|
||||
|
@ -23,14 +23,15 @@ optdepends=(
|
|||
r-tidyr
|
||||
)
|
||||
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
|
||||
sha256sums=('59e5ca8936c4394732b352dabee6a85cb08b952d3f272e243db0171b44593e63')
|
||||
md5sums=('d8345e6cce668ebe3afe2ef3fe9686c0')
|
||||
sha256sums=('9845ed6069cd877da59055207b39ea2e30e895b3e9e29f384a985b3d819fd7bf')
|
||||
|
||||
build() {
|
||||
R CMD INSTALL ${_pkgname}_${_pkgver}.tar.gz -l "${srcdir}"
|
||||
mkdir -p build
|
||||
R CMD INSTALL "$_pkgname" -l build
|
||||
}
|
||||
|
||||
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,13 @@
|
|||
#!/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)
|
||||
|
||||
def post_build():
|
||||
git_pkgbuild_commit()
|
||||
|
|
|
@ -1,12 +1,13 @@
|
|||
build_prefix: extra-x86_64
|
||||
maintainers:
|
||||
- github: starsareintherose
|
||||
email: kuoi@bioarchlinux.org
|
||||
- github: pekkarr
|
||||
email: pekkarr@protonmail.com
|
||||
repo_depends:
|
||||
- r-ggplot2
|
||||
- r-rlang
|
||||
update_on:
|
||||
- regex: ggfun_([\d._-]+).tar.gz
|
||||
source: regex
|
||||
url: https://cran.r-project.org/package=ggfun
|
||||
- source: rpkgs
|
||||
pkgname: ggfun
|
||||
repo: cran
|
||||
md5: true
|
||||
- alias: r
|
||||
|
|
|
@ -185,6 +185,7 @@ class Pkgbuild:
|
|||
license_map = {
|
||||
"Apache License (== 2.0)": "Apache",
|
||||
"Apache License 2.0": "Apache",
|
||||
"Artistic-2.0": "Artistic2.0",
|
||||
"BSD_2_clause + file LICENSE": "BSD",
|
||||
"BSD_3_clause + file LICENSE": "BSD",
|
||||
"BSL-1.0": "Boost",
|
||||
|
|
Loading…
Add table
Reference in a new issue