blob: 4d3aa09d7f17e1065ddcbde25368593d92d5f6d5 (
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
39
|
# Maintainer: Michał Wojdyła < micwoj9292 at gmail dot com >
# Contributor: bb010g <bb010g@gmail.com>
pkgname=python-envtpl-git
pkgver=r82.b370fd3
pkgrel=1
pkgdesc='Render jinja2 templates on the command line using shell environment variables'
arch=('any')
url='https://github.com/andreasjansson/envtpl'
license=('GPL')
depends=(python{,-jinja})
makedepends=(git python-{setuptools,sh,six})
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("python-envtpl::git+https://github.com/andreasjansson/envtpl")
md5sums=('SKIP')
export PIP_CONFIG_FILE=/dev/null
export PIP_DISABLE_PIP_VERSION_CHECK=true
pkgver() {
cd "$srcdir/${pkgname%-git}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/${pkgname%-git}"
python setup.py build
}
check() {
cd "$srcdir/${pkgname%-git}"
python setup.py test
}
package() {
cd "${pkgname%-git}"
python setup.py install --root="$pkgdir" --optimize 1 --skip-build
}
|