summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorViktor Drobot2020-03-08 23:42:59 +0300
committerViktor Drobot2020-03-08 23:42:59 +0300
commit0684f3b569f0bc938725ccb6a0cc5482b3ed3097 (patch)
tree230e1265e5563e30ee2a840489d09b9ffa8f9a19
parent0166e9dc59c6a76f3556ff99aa859cac437fced3 (diff)
downloadaur-0684f3b569f0bc938725ccb6a0cc5482b3ed3097.tar.gz
Fixed PKGBUILD
-rw-r--r--.SRCINFO7
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD32
3 files changed, 23 insertions, 20 deletions
diff --git a/.SRCINFO b/.SRCINFO
index b2441baac61..af7689ce0f0 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -3,10 +3,13 @@ pkgbase = r-backports
pkgver = 1.1.5
pkgrel = 1
url = https://cran.r-project.org/package=backports
+ arch = i686
arch = x86_64
+ license = GPL2
license = GPL3
- depends = r
- source = http://cran.r-project.org/src/contrib/backports_1.1.5.tar.gz
+ makedepends = gcc
+ depends = r>=3.0.0
+ source = https://cran.r-project.org/src/contrib/backports_1.1.5.tar.gz
md5sums = 3e22dd9c53fa5822c14b2d476f86a0ea
pkgname = r-backports
diff --git a/.gitignore b/.gitignore
deleted file mode 100644
index 6ae0b18a1f6..00000000000
--- a/.gitignore
+++ /dev/null
@@ -1,4 +0,0 @@
-/pkg
-/src
-*.tar.gz
-*.tar.xz
diff --git a/PKGBUILD b/PKGBUILD
index 7d6e5e3f05b..d023cf2f015 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,26 +1,30 @@
-# Maintainer: Matt Frichtl <frichtlm@gmail.com>
+# Maintainer: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com
+# Contributor: Matt Frichtl <frichtlm@gmail.com>
# Contributor: Grey Christoforo <first name at last name dot net>
+
_cranname=backports
_cranver=1.1.5
-pkgname=r-${_cranname}
-pkgver=${_cranver}
+pkgname=r-${_cranname,,}
+pkgver=${_cranver//[:-]/.}
pkgrel=1
pkgdesc="Reimplementations of Functions Introduced Since R-3.0.0"
-arch=('x86_64')
-url="https://cran.r-project.org/package=backports"
-license=('GPL3')
-depends=('r')
-source=("http://cran.r-project.org/src/contrib/${_cranname}_${pkgver}.tar.gz")
-#source=("http://cran.r-project.org/src/contrib/Archive/${_cranname}_${cranver}.tar.gz") # uncomment line if 404 error
+arch=(i686 x86_64)
+url="https://cran.r-project.org/package=${_cranname}"
+license=(GPL2 GPL3)
+depends=('r>=3.0.0')
+makedepends=(gcc)
+source=("https://cran.r-project.org/src/contrib/${_cranname}_${_cranver}.tar.gz")
md5sums=('3e22dd9c53fa5822c14b2d476f86a0ea')
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"
}