r-metrics: fix to install file license

This commit is contained in:
Shun Wang 2024-12-27 14:25:43 +08:00 committed by GitHub
parent 27152b4065
commit 88a9b1df07
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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"
}