summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c07e31e8e3a072e7ed3dffe225be67da05afaedd (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
# Maintainer: Nigel Kukard <nkukard@lbsd.net>
# Contributor: Serge Victor <arch@random.re>

_pipname=Flask-DebugToolbar
pkgbase=python-flask-debugtoolbar
pkgname=('python2-flask-debugtoolbar' 'python-flask-debugtoolbar')
pkgver=0.10.1
pkgrel=1
pkgdesc="A toolbar overlay for debugging Flask applications"
arch=('any')
url="http://flask-debugtoolbar.rtfd.org/"
license=('BSD')
makedepends=('python2-setuptools' 'python-setuptools')
source=("https://pypi.python.org/packages/source/${_pipname:0:1}/$_pipname/$_pipname-$pkgver.tar.gz")
sha256sums=('ec810083123aae0632eb32ba11e1cb4cdace81e7ce6c5009dd06c5204afbce52')


prepare() {
	cp -R "$_pipname-$pkgver" "python2-$_pipname-$pkgver"
}

package_python2-flask-debugtoolbar() {
	depends=('python2-blinker' 'python2-flask' 'python2-visitor' 'python2-dominate')

    cd "python2-$_pipname-$pkgver"
    python2 setup.py install --root="$pkgdir/" --optimize=1
}

package_python-flask-debugtoolbar() {
	depends=('python-blinker' 'python-flask' 'python-visitor' 'python-dominate')

    cd "$_pipname-$pkgver"
    python setup.py install --root="$pkgdir/" --optimize=1
}