summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorIván Ruvalcaba2017-05-05 11:26:59 -0500
committerIván Ruvalcaba2017-05-05 11:26:59 -0500
commit84c67c41e76ab47d89c7138cdcebc219e7a81c0e (patch)
tree517174ae151a1ab3c6e4eebc63d0fee841818d47 /PKGBUILD
downloadaur-84c67c41e76ab47d89c7138cdcebc219e7a81c0e.tar.gz
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD36
1 files changed, 36 insertions, 0 deletions
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: