r-pkgkitten: init

This commit is contained in:
Pekka Ristola 2024-03-20 17:49:41 +02:00
parent f67f04eb66
commit 35b1a5919b
No known key found for this signature in database
GPG key ID: 2C20BE716E05213E
3 changed files with 57 additions and 0 deletions

View file

@ -0,0 +1,33 @@
# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com>
# Contributor: Robert Greener <me@r0bert.dev>
_pkgname=pkgKitten
_pkgver=0.2.3
pkgname=r-${_pkgname,,}
pkgver=${_pkgver//-/.}
pkgrel=0
pkgdesc="Create Simple Packages Which Do not Upset R Package Checks"
arch=(any)
url="https://cran.r-project.org/package=$_pkgname"
license=('GPL-2.0-or-later')
depends=(
r
)
optdepends=(
r-roxygen2
r-tinytest
r-whoami
)
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
md5sums=('7b58fad3ab4be2ad5ca3853c34c29f8b')
b2sums=('510f33455c03b3292142f7454f673740e914357e3f6cc23cad829c7f4555a363adf1cae276803390a6903381a3d64ff04803b7e7a49ec3629d6f5bc93b46814f')
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: pekkarr
email: pekkarr@protonmail.com
update_on:
- source: rpkgs
pkgname: pkgKitten
repo: cran
md5: true
- alias: r