r-tinyplot: add new pkg

This commit is contained in:
Shun Wang 2025-02-26 17:30:38 +08:00 committed by GitHub
parent 88fb3ac233
commit 95b6e14f49
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 62 additions and 0 deletions

View 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"
}

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

View 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

View file

@ -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')