summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d74273f31b0728d3765d60b74524765653f49f72 (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
# Maintainer: Tyler Cook <tcc@sandpolis.com>
# Contributor: Sean Enck <enckse@gmail.com>
pkgname=python-flask-git
_pkgname=flask
pkgver=2.0.1.r19.g6f5870a7
pkgrel=1
pkgdesc='Micro webdevelopment framework for Python'
arch=('any')
url='http://flask.pocoo.org/'
license=('custom:BSD')
depends=('python-werkzeug' 'python-jinja' 'python-itsdangerous' 'python-click')
makedepends=('git')
conflicts=('python-flask')
provides=('python-flask')
source=('git://github.com/pallets/flask.git')
md5sums=('SKIP')

pkgver() {
  cd $_pkgname
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd $_pkgname
  python setup.py build
}

package() {
  cd $_pkgname
  python setup.py install --root=${pkgdir} --optimize=1
  install -D -m644 LICENSE.rst ${pkgdir}/usr/share/licenses/python-flask
}