summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDrobot Viktor2019-10-12 02:16:45 +0300
committerDrobot Viktor2019-10-12 02:16:45 +0300
commit064cb2c62d043b2870d420330d2489c3074f6a25 (patch)
tree98f47b1e5e916b925d3fc4f0a877a281dd10191d
downloadaur-064cb2c62d043b2870d420330d2489c3074f6a25.tar.gz
First release
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD29
2 files changed, 45 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..2080096fe45
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = r-fastmap
+ pkgdesc = Fast Implementation of a Key-Value Store
+ pkgver = 1.0.1
+ pkgrel = 1
+ url = https://cran.r-project.org/package=fastmap
+ arch = x86_64
+ arch = i686
+ license = MIT
+ makedepends = gcc
+ depends = r
+ optdepends = r-testthat
+ source = http://cran.r-project.org/src/contrib/fastmap_1.0.1.tar.gz
+ md5sums = 3f6c60a00b60f3a3fba56962fe245ae8
+
+pkgname = r-fastmap
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..124d5e2e57c
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,29 @@
+# Maintainer: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com
+
+_cranname=fastmap
+_cranver=1.0.1
+pkgname=r-${_cranname}
+pkgver=${_cranver//[:-]/.}
+pkgrel=1
+pkgdesc="Fast Implementation of a Key-Value Store"
+arch=('x86_64' 'i686')
+url="https://cran.r-project.org/package=${_cranname}"
+license=('MIT')
+depends=('r')
+makedepends=('gcc')
+optdepends=('r-testthat')
+source=("http://cran.r-project.org/src/contrib/${_cranname}_${_cranver}.tar.gz")
+md5sums=('3f6c60a00b60f3a3fba56962fe245ae8')
+
+build(){
+ 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"
+}