summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 63e0c3d9a5634acd407400ca611e83afed72bf27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Maintainer: Max Zhao <alcasa.mz@gmail.com>
# Contributor: Icaro Perseo <icaroperseo[at]protonmail[dot]com>

pkgname=instant-rst
_commit=48ebd40  # 7 digits
pkgver=20180612
pkgrel=1
pkgdesc="A local server for preview rst document instantly"
arch=('any')
url="https://github.com/Rykka/instant-rst.py"
license=('CPL')
depends=('python-flask' 'python-docutils' 'python-pygments' 'python-flask-socketio' 'python-socketio' 'python-future')
makedepends=('python-setuptools')
optdepends=('vim' 'neovim')
source=("${pkgname}::git+https://github.com/tlinhart/${pkgname}.py.git#commit=${_commit}")
md5sums=('SKIP')

pkgver() {
  cd "${pkgname}"

  git log -1 --format="%cd" --date=short | tr -d '-'
}

build() {
  cd "${pkgname}"

  python setup.py build
}

package() {
  cd "${pkgname}"

  python setup.py install --root="${pkgdir}" --optimize=1
}

# vim:set ts=2 sw=2 cc=80 et: