summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD36
2 files changed, 56 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..2b9ff278769
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+pkgbase = vim-instant-rst
+ pkgdesc = A local server for preview rst document instantly
+ pkgver = 20160308
+ pkgrel = 1
+ url = https://github.com/Rykka/instant-rst.py
+ arch = any
+ license = CPL
+ makedepends = python2-setuptools
+ depends = python2-flask
+ depends = python2-docutils
+ depends = python2-pygments
+ depends = python2-flask-socketio
+ depends = python2-socketio
+ optdepends = vim
+ optdepends = nvim
+ source = instant-rst::git+https://github.com/Rykka/instant-rst.py.git#commit=490ede9
+ md5sums = SKIP
+
+pkgname = vim-instant-rst
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..4eecfa69269
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,36 @@
+# Maintainer: Icaro Perseo <icaroperseo[at]protonmail[dot]com>
+
+_pkgname=instant-rst
+pkgname="vim-${_pkgname}"
+_commit=490ede9 # 7 digits
+pkgver=20160308
+pkgrel=1
+pkgdesc="A local server for preview rst document instantly"
+arch=('any')
+url="https://github.com/Rykka/instant-rst.py"
+license=('CPL')
+depends=('python2-flask' 'python2-docutils' 'python2-pygments' 'python2-flask-socketio' 'python2-socketio')
+makedepends=('python2-setuptools')
+optdepends=('vim' 'nvim')
+source=("${_pkgname}::git+https://github.com/Rykka/${_pkgname}.py.git#commit=${_commit}")
+md5sums=('SKIP')
+
+pkgver() {
+ cd "${_pkgname}"
+
+ git log -1 --format="%cd" --date=short | tr -d '-'
+}
+
+build() {
+ cd "${_pkgname}"
+
+ python2 setup.py build
+}
+
+package() {
+ cd "${_pkgname}"
+
+ python2 setup.py install --root="${pkgdir}" --optimize=1
+}
+
+# vim:set ts=2 sw=2 cc=80 et: