summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cf54ad5e92f1e8133dc9291d8a50c071fa0285d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Maintainer: Guoyi Zhang <guoyizhang at malacology dot net>

_pkgname=objectSignals
_pkgver=0.10.3
pkgname=r-${_pkgname,,}
pkgver=${_pkgver//-/.}
pkgrel=6
pkgdesc="Observer Pattern for S4"
arch=(any)
url="https://cran.r-project.org/package=$_pkgname"
license=('GPL-2.0-or-later')
depends=(
  r
)
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
md5sums=('6b76acd9915ae4bd1e9b84d972810360')
b2sums=('3f5aaac52de66b72a10eea4da9d40a262f5fb06846e793d010a782e473fd5ebbf9e2e8a9e629126f23d0c275b686b83c5465d3a97136790e4ac661bb875ed9cb')

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