Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions BioArchLinux/r-ankir/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Maintainer: Christos Longros <chris.longros@gmail.com>
_pkgname=ankiR
_pkgver=0.6.0
pkgname=r-${_pkgname,,}
pkgver=${_pkgver//-/.}
pkgrel=1
pkgdesc="Analysis and Management of Anki Databases"
arch=(any)
url="https://cran.r-project.org/package=$_pkgname"
license=('GPL-3.0-or-later')
depends=(
r-rlang
r-jsonlite
r-dbi
r-rsqlite
Comment on lines +12 to +15
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also add those to repo_depends: in lilac.yaml

r-tibble
r-scales
)
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
md5sums=('f4349bc1a7ae403ed99ae1c34a69f0e8')
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"
}
11 changes: 11 additions & 0 deletions BioArchLinux/r-ankir/lilac.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/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()
17 changes: 17 additions & 0 deletions BioArchLinux/r-ankir/lilac.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
build_prefix: extra-x86_64
maintainers:
- github: chrislongros
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you also provide a non-microsoft email to receive notification?

email: chris.longros@gmail.com
repo_depends:
- r-rlang
- r-jsonlite
- r-dbi
- r-rsqlite
- r-tibble
- r-scales
update_on:
- source: rpkgs
pkgname: ankiR
repo: cran
md5: true
- alias: r