mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
37 lines
1.1 KiB
Bash
37 lines
1.1 KiB
Bash
# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com>
|
|
# Contributor: Guoyi Zhang <guoyizhang at malacology dot net>
|
|
# Contributor: Robert Greener <me@r0bert.dev>
|
|
# Contributor: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com
|
|
# Contributor: Kibouo <csonka.mihaly@hotmail.com>
|
|
# Contributor: Ward Segers <w@rdsegers.be>
|
|
# Contributor: Alex Branham <branham@utexas.edu>
|
|
|
|
_pkgname=git2r
|
|
_pkgver=0.35.0
|
|
pkgname=r-${_pkgname,,}
|
|
pkgver=${_pkgver//-/.}
|
|
pkgrel=2
|
|
pkgdesc="Provides Access to Git Repositories"
|
|
arch=(x86_64)
|
|
url="https://cran.r-project.org/package=$_pkgname"
|
|
license=('GPL-2.0-only')
|
|
depends=(
|
|
libgit2
|
|
r
|
|
)
|
|
optdepends=(
|
|
r-getpass
|
|
)
|
|
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
|
|
md5sums=('ea50be039ec05952a9d5553edc905028')
|
|
b2sums=('e7d493c32a79fb1698e396121e9d6d9377a9c174ccf8f56aa41e15f093881cba6f87a28d76dc92d4d922a7accb368308024875c9995ff05908d43b0c1db93750')
|
|
|
|
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"
|
|
}
|