mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
r-tinyplot: add new pkg
This commit is contained in:
parent
88fb3ac233
commit
95b6e14f49
4 changed files with 62 additions and 0 deletions
37
BioArchLinux/r-tinyplot/PKGBUILD
Normal file
37
BioArchLinux/r-tinyplot/PKGBUILD
Normal file
|
@ -0,0 +1,37 @@
|
|||
# Maintainer: Shun Wang <shuonwang [at] gmail [dot] com>
|
||||
|
||||
_pkgname=tinyplot
|
||||
_pkgver=0.3.0
|
||||
pkgname=r-${_pkgname,,}
|
||||
pkgver=${_pkgver//-/.}
|
||||
pkgrel=1
|
||||
pkgdesc="Lightweight Extension of the Base R Graphics System)"
|
||||
arch=(x86_64)
|
||||
url="https://cran.r-project.org/package=$_pkgname"
|
||||
license=('Apache License 2.0')
|
||||
depends=(
|
||||
r
|
||||
)
|
||||
optdepends=(
|
||||
r-altdoc
|
||||
r-fontquiver
|
||||
r-png
|
||||
r-rsvg
|
||||
r-svglite
|
||||
r-tinytest
|
||||
r-tinysnapshot
|
||||
r-knitr
|
||||
)
|
||||
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
|
||||
md5sums=('9791c84c9922d4957d24f5c318b98444')
|
||||
b2sums=('69a54de34c14d08edc506ad06cc850178ce6a473fc97e2e803aaae7442394959c2b6baf871e78a6181c5f0fd0d955cb0c0f1177d811b3b13ae74d8e83c03af43')
|
||||
|
||||
build() {
|
||||
mkdir build
|
||||
R CMD INSTALL -l build "$_pkgname"
|
||||
}
|
||||
|
||||
package() {
|
||||
install -d "$pkgdir/usr/lib/R/library"
|
||||
cp -a --no-preserve=ownership "build/$_pkgname" "$pkgdir/usr/lib/R/library"
|
||||
}
|
14
BioArchLinux/r-tinyplot/lilac.py
Normal file
14
BioArchLinux/r-tinyplot/lilac.py
Normal file
|
@ -0,0 +1,14 @@
|
|||
#!/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():
|
||||
r_pre_build(_G)
|
||||
|
||||
def post_build():
|
||||
git_pkgbuild_commit()
|
||||
update_aur_repo()
|
10
BioArchLinux/r-tinyplot/lilac.yaml
Normal file
10
BioArchLinux/r-tinyplot/lilac.yaml
Normal file
|
@ -0,0 +1,10 @@
|
|||
build_prefix: extra-x86_64
|
||||
maintainers:
|
||||
- github: shun2wang
|
||||
email: shuonwang@gmail.com
|
||||
update_on:
|
||||
- source: rpkgs
|
||||
pkgname: tinyplot
|
||||
repo: cran
|
||||
md5: true
|
||||
- alias: r
|
|
@ -31,6 +31,7 @@ optdepends=(
|
|||
r-tis
|
||||
r-tseries
|
||||
r-xts
|
||||
r-tinyplot
|
||||
)
|
||||
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
|
||||
md5sums=('9bf826a22610f5a3f8ebd063404e7183')
|
||||
|
|
Loading…
Add table
Reference in a new issue