summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSukanka2022-06-06 19:11:53 +0800
committerSukanka2022-06-06 19:11:53 +0800
commit6399ccaea467249758600e46c48443c90be3dbdf (patch)
treebb3d17222919de169cd47bbf4cbadb9decaca7ff
downloadaur-6399ccaea467249758600e46c48443c90be3dbdf.tar.gz
add r-proxyc
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD35
2 files changed, 53 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..b5771f127b7
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = r-proxyc
+ pkgdesc = Computes Proximity in Large Sparse Matrices
+ pkgver = 0.2.4
+ pkgrel = 4
+ url = https://cran.r-project.org/package=proxyC
+ arch = x86_64
+ license = GPL
+ depends = r
+ depends = r-rcpp
+ depends = r-rcpparmadillo
+ depends = r-rcppparallel
+ optdepends = r-entropy
+ optdepends = r-proxy
+ optdepends = r-testthat
+ source = https://cran.r-project.org/src/contrib/proxyC_0.2.4.tar.gz
+ sha256sums = a63975fc77df91e0c4db6d3bceac26eeca015f767f3ecd4f9592859eb9ae91d5
+
+pkgname = r-proxyc
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..c7f31390c0b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,35 @@
+# system requirements: C++11
+# Maintainer: Guoyi Zhang <guoyizhang at malacology dot net>
+
+_pkgname=proxyC
+_pkgver=0.2.4
+pkgname=r-${_pkgname,,}
+pkgver=0.2.4
+pkgrel=4
+pkgdesc='Computes Proximity in Large Sparse Matrices'
+arch=('x86_64')
+url="https://cran.r-project.org/package=${_pkgname}"
+license=('GPL')
+depends=(
+ r
+ r-rcpp
+ r-rcpparmadillo
+ r-rcppparallel
+)
+optdepends=(
+ r-entropy
+ r-proxy
+ r-testthat
+)
+source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
+sha256sums=('a63975fc77df91e0c4db6d3bceac26eeca015f767f3ecd4f9592859eb9ae91d5')
+
+build() {
+ R CMD INSTALL ${_pkgname}_${_pkgver}.tar.gz -l "${srcdir}"
+}
+
+package() {
+ install -dm0755 "${pkgdir}/usr/lib/R/library"
+ cp -a --no-preserve=ownership "${_pkgname}" "${pkgdir}/usr/lib/R/library"
+}
+# vim:set ts=2 sw=2 et: