summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f963e22f607d75ca43b19f523365751d79d19a5d (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
37
38
# Maintainer: Hugo Osvaldo Barrera <hugo@barrera.io>

pkgname=python2-werkzeug-git
_pkgname=werkzeug
pkgver=latest
pkgrel=1
pkgdesc='The Swiss Army knife of Python web development (git python2 version)'
arch=('i686' 'x86_64')
url='http://werkzeug.pocoo.org/'
license=('custom:BSD')
depends=('python2')
makedepends=('git')
conflicts=('python2-werkzeug')
provides=('python2-werkzeug')
source=('git+https://github.com/mitsuhiko/werkzeug.git')
md5sums=('SKIP')

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

check() {
    cd "$srcdir/$_pkgname"
    python2 setup.py test || true
}

build() {
    cd "$srcdir/$_pkgname"
    python2 setup.py build
}

package() {
    cd "$srcdir/$_pkgname"

    python2 setup.py install --root=${pkgdir} --optimize=1
    install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/python2-werkzeug
}