summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO24
-rw-r--r--PKGBUILD29
2 files changed, 53 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..b6ed2aa3cbad
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,24 @@
+pkgbase = r-webshot
+ pkgdesc = Take Screenshots of Web Pages
+ pkgver = 0.5.1
+ pkgrel = 1
+ url = https://cran.r-project.org/package=webshot
+ arch = any
+ license = GPL3
+ depends = r
+ depends = r-magrittr
+ depends = r-jsonlite
+ depends = r-callr
+ depends = phantomjs
+ depends = imagemagick
+ depends = graphicsmagick
+ depends = optipng
+ optdepends = r-httpuv
+ optdepends = r-knitr
+ optdepends = r-markdown
+ optdepends = r-shiny
+ source = http://cran.r-project.org/src/contrib/webshot_0.5.1.tar.gz
+ md5sums = c80fb3614b6c249353b07387cf531d5b
+
+pkgname = r-webshot
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..9c518dc09c17
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,29 @@
+# Maintainer: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com
+
+_cranname=webshot
+_cranver=0.5.1
+pkgname=r-${_cranname}
+pkgver=${_cranver//[:-]/.}
+pkgrel=1
+pkgdesc="Take Screenshots of Web Pages"
+arch=('any')
+url="https://cran.r-project.org/package=${_cranname}"
+license=('GPL3')
+depends=('r' 'r-magrittr' 'r-jsonlite' 'r-callr' 'phantomjs' 'imagemagick' 'graphicsmagick' 'optipng')
+optdepends=('r-httpuv' 'r-knitr' 'r-markdown' 'r-shiny')
+source=("http://cran.r-project.org/src/contrib/${_cranname}_${_cranver}.tar.gz")
+md5sums=('c80fb3614b6c249353b07387cf531d5b')
+
+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"
+}
+