mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
37 lines
980 B
Bash
37 lines
980 B
Bash
# Maintainer: Guoyi Zhang <guoyizhang at malacology dot net>
|
|
|
|
_pkgname=ccrepe
|
|
_pkgver=1.42.0
|
|
pkgname=r-${_pkgname,,}
|
|
pkgver=${_pkgver//-/.}
|
|
pkgrel=1
|
|
pkgdesc="ccrepe_and_nc.score"
|
|
arch=(any)
|
|
url="https://bioconductor.org/packages/$_pkgname"
|
|
license=('MIT')
|
|
depends=(
|
|
r-infotheo
|
|
)
|
|
optdepends=(
|
|
r-biocgenerics
|
|
r-biocstyle
|
|
r-knitr
|
|
r-runit
|
|
r-testthat
|
|
)
|
|
source=("https://bioconductor.org/packages/release/bioc/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
|
|
md5sums=('fa406df6f23f3e0f98ceb330645cf3cf')
|
|
b2sums=('ea335936879a017a74dc06cbe909bbd08d39641b65daf087b592d1f84d419f40b793a5bb1c0e70972f99fb524cc153409ec48a82c7f888d4b6dceeb3c7dc4bc9')
|
|
|
|
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"
|
|
|
|
install -d "$pkgdir/usr/share/licenses/$pkgname"
|
|
ln -s "/usr/lib/R/library/$_pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname"
|
|
}
|