mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
r-metrics: fix to install file license
This commit is contained in:
parent
27152b4065
commit
88a9b1df07
1 changed files with 5 additions and 0 deletions
|
@ -18,11 +18,16 @@ optdepends=(
|
|||
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
|
||||
md5sums=('b2202269b66cd891b834d742cfd937ba')
|
||||
b2sums=('74f5b769cdef2a1120b505901c039632eaf0c6fbb961141c3a58e45bafa0de584f4f2fe2a522d1d11a6c9c7ee8225a999662d3d2c9ada8bd39e7f45872216404')
|
||||
|
||||
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/LICENCE" "$pkgdir/usr/share/licenses/$pkgname"
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue