summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorViktor Drobot2020-03-09 01:05:45 +0300
committerViktor Drobot2020-03-09 01:05:45 +0300
commit62edfa9e4d1db8bee7f0e09e628680fa87e4dd34 (patch)
tree06be3eb38ed0a6973decb7097e4ae57b53eeebaa
parent7746bec9fe917f66ce4323ffa1765b461e77da41 (diff)
downloadaur-62edfa9e4d1db8bee7f0e09e628680fa87e4dd34.tar.gz
Fixed PKGBUILD
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD29
2 files changed, 18 insertions, 15 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 10a80f5b3d7..88bfc6fbfde 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -4,13 +4,13 @@ pkgbase = r-generics
pkgrel = 1
url = https://cran.r-project.org/package=generics
arch = any
- license = GPL-2
+ license = GPL2
depends = r>=3.1
optdepends = r-covr
optdepends = r-pkgload
optdepends = r-testthat
optdepends = r-tibble
- source = http://cran.r-project.org/src/contrib/generics_0.0.2.tar.gz
+ source = https://cran.r-project.org/src/contrib/generics_0.0.2.tar.gz
md5sums = 9b4d9351c6c413e6f67ec7a041217946
pkgname = r-generics
diff --git a/PKGBUILD b/PKGBUILD
index 14067640f6e..0ffaec07c4c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,26 +1,29 @@
-# Maintainer: frichtlm <frichtlm@gmail.com>
+# Maintainer: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com
+# Contributor: frichtlm <frichtlm@gmail.com>
+
_cranname=generics
_cranver=0.0.2
-pkgname=r-$_cranname
-pkgver=${_cranver}
+pkgname=r-${_cranname,,}
+pkgver=${_cranver//[:-]/.}
pkgrel=1
pkgdesc="Common S3 Generics not Provided by Base R Methods Related to Model Fitting"
+arch=(any)
url="https://cran.r-project.org/package=${_cranname}"
-arch=('any')
-license=('GPL-2')
+license=(GPL2)
depends=('r>=3.1')
-optdepends=('r-covr' 'r-pkgload' 'r-testthat' 'r-tibble')
-source=("http://cran.r-project.org/src/contrib/${_cranname}_${_cranver}.tar.gz")
-#source=("http://cran.r-project.org/src/contrib/Archive/${_cranname}/${_cranname}_${_cranver}.tar.gz" # uncomment if 404 error
+optdepends=(r-covr r-pkgload r-testthat r-tibble)
+source=("https://cran.r-project.org/src/contrib/${_cranname}_${_cranver}.tar.gz")
md5sums=('9b4d9351c6c413e6f67ec7a041217946')
build() {
- cd "${srcdir}"
- R CMD INSTALL ${_cranname}_${_cranver}.tar.gz -l $srcdir
+ cd "${srcdir}"
+
+ R CMD INSTALL ${_cranname}_${_cranver}.tar.gz -l ${srcdir}
}
package() {
- cd "${srcdir}"
- install -dm0755 "$pkgdir/usr/lib/R/library"
- cp -a --no-preserve=ownership "$_cranname" "$pkgdir/usr/lib/R/library"
+ cd "${srcdir}"
+
+ install -dm0755 "${pkgdir}/usr/lib/R/library"
+ cp -a --no-preserve=ownership "${_cranname}" "${pkgdir}/usr/lib/R/library"
}