summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorViktor Drobot2020-04-04 15:21:00 +0300
committerViktor Drobot2020-04-04 15:21:00 +0300
commit4f1dda68a2d41f2cc3d0b860443572b34c3b93ee (patch)
tree87b96a6dd9a22cd183d7f6f6209397d4c074c4b4 /PKGBUILD
parent5c2bd8ee6d8dda53bb3e9101f419d1d777adbe60 (diff)
downloadaur-4f1dda68a2d41f2cc3d0b860443572b34c3b93ee.tar.gz
First release
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD33
1 files changed, 18 insertions, 15 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 246564a30fa..20c3bc2f286 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,26 +1,29 @@
-# Maintainer: Alex Branham <branham@utexas.edu>
+# Maintainer: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com
+# Contributor: Alex Branham <branham@utexas.edu>
+
_cranname=cellranger
_cranver=1.1.0
-_pkgtar=${_cranname}_${_cranver}.tar.gz
-pkgname=r-cellranger
+pkgname=r-${_cranname,,}
pkgver=${_cranver//[:-]/.}
pkgrel=1
pkgdesc="Translate Spreadsheet Cell Ranges to Rows and Columns"
-arch=('any')
+arch=(any)
url="https://cran.r-project.org/package=${_cranname}"
-license=('MIT')
-depends=('r' 'r-rematch' 'r-tibble')
-
-optdepends=('r-covr' 'r-testthat' 'r-knitr' 'r-rmarkdown')
-
-source=("https://cran.r-project.org/src/contrib/${_pkgtar}")
+license=(MIT)
+depends=('r>=3.0.0' r-rematch r-tibble)
+optdepends=(r-covr r-testthat r-knitr r-rmarkdown)
+source=("https://cran.r-project.org/src/contrib/${_cranname}_${_cranver}.tar.gz")
md5sums=('1abcfea6af5ab2e277cb99e86880456f')
-build(){
- R CMD INSTALL ${_pkgtar} -l $srcdir
+build() {
+ cd "${srcdir}"
+
+ R CMD INSTALL ${_cranname}_${_cranver}.tar.gz -l ${srcdir}
}
+
package() {
- install -d "$pkgdir/usr/lib/R/library"
- cp -r "$srcdir/$_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"
+}