summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorViktor Drobot2020-03-09 00:05:19 +0300
committerViktor Drobot2020-03-09 00:05:19 +0300
commit686487e2bde6d4f39ce04af3ef2180dfc1bd6cd5 (patch)
treee646cef112f4a13414afb1869f2ab3874342efa6
parent8d07807b0b3eb36174d76bf047a833c577a88b35 (diff)
downloadaur-686487e2bde6d4f39ce04af3ef2180dfc1bd6cd5.tar.gz
Fixed PKGBUILD
-rw-r--r--.SRCINFO9
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD32
3 files changed, 23 insertions, 22 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 1477226fe3d..cd5771c3692 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -5,13 +5,14 @@ pkgbase = r-digest
url = https://cran.r-project.org/package=digest
arch = i686
arch = x86_64
- license = GPL-2
- license = GPL-3
+ license = GPL2
+ license = GPL3
+ makedepends = gcc
depends = r>=3.1.0
optdepends = r-tinytest
optdepends = r-knitr
- optdepends = r-markdown
- source = http://cran.r-project.org/src/contrib/digest_0.6.25.tar.gz
+ optdepends = r-rmarkdown
+ source = https://cran.r-project.org/src/contrib/digest_0.6.25.tar.gz
md5sums = 36da6c97677766a8901b7b8f06f51daa
pkgname = r-digest
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 0255154c442..7025fac3fca 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,27 +1,31 @@
-# Maintainer: frichtlm <frichtlm@gmail.com>
+# Maintainer: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com
+# Contributor: frichtlm <frichtlm@gmail.com>
# Contributor: Grey Christoforo <first name at last name dot net>
+
_cranname=digest
_cranver=0.6.25
-pkgname=r-${_cranname}
-pkgver=${_cranver}
+pkgname=r-${_cranname,,}
+pkgver=${_cranver//[:-]/.}
pkgrel=1
pkgdesc="Create Compact Hash Digests of R Objects"
+arch=(i686 x86_64)
url="https://cran.r-project.org/package=${_cranname}"
-arch=('i686' 'x86_64')
-license=('GPL-2' 'GPL-3')
+license=(GPL2 GPL3)
depends=('r>=3.1.0')
-optdepends=('r-tinytest' 'r-knitr' 'r-markdown')
-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") # replace with this if 404 error
-md5sums=('36da6c97677766a8901b7b8f06f51daa')
+makedepends=(gcc)
+optdepends=(r-tinytest r-knitr r-rmarkdown)
+source=("https://cran.r-project.org/src/contrib/${_cranname}_${_cranver}.tar.gz")
+md5sums=('36da6c97677766a8901b7b8f06f51daa')
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"
}