Mercurial > vanilla
comparison python/py-docker/py-docker.sh @ 143:329cad4dc6b0
python: merge .sh and .info
author | David Demelier <markand@malikania.fr> |
---|---|
date | Mon, 11 Mar 2019 20:20:00 +0100 |
parents | f9579fe0c78a |
children | 25cecc6dca48 |
comparison
equal
deleted
inserted
replaced
142:c3e9685afe86 | 143:329cad4dc6b0 |
---|---|
1 #!/bin/sh | 1 #!/bin/sh |
2 # | 2 # |
3 # Copyright (c) 2019 Stéphane Péquignot <contact@stephanepequignot.fr> | 3 # Copyright (c) 2019 Stéphane Péquignot <contact@stephanepequignot.fr> |
4 # Copyright (c) 2019 David Demelier <markand@malikania.fr> | |
4 # | 5 # |
5 # Permission to use, copy, modify, and/or distribute this software for any | 6 # Permission to use, copy, modify, and/or distribute this software for any |
6 # purpose with or without fee is hereby granted, provided that the above | 7 # purpose with or without fee is hereby granted, provided that the above |
7 # copyright notice and this permission notice appear in all copies. | 8 # copyright notice and this permission notice appear in all copies. |
8 # | 9 # |
13 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | 14 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN |
14 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | 15 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
15 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | 16 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
16 # | 17 # |
17 | 18 |
18 source ./py-docker.info | 19 PKGNAME=py-docker |
20 PKGVERSION=3.7.0 | |
21 PKGREVISION=1 | |
22 PKGLICENSE="APACHE20" | |
23 PKGSUMMARY="A Python library for the Docker Engine API" | |
24 PKGDOWNLOAD="https://github.com/docker/docker-py/archive/$PKGVERSION.tar.gz" | |
25 PKGDEPENDS="python/python" | |
19 | 26 |
20 set -e | 27 build() |
28 { | |
29 rm -rf docker-py-$PKGVERSION | |
30 tar xvaf $PKGVERSION.tar.gz | |
31 pushd docker-py-$PKGVERSION | |
21 | 32 |
22 rm -rf docker-py-$PKGVERSION | 33 python setup.py install --root=${DESTDIR:-/} -O1 |
23 tar xvaf $PKGVERSION.tar.gz | |
24 pushd docker-py-$PKGVERSION | |
25 | 34 |
26 python setup.py install --root=${DESTDIR:-/} -O1 | 35 popd |
27 | 36 rm -rf docker-py-$PKGVERSION |
28 popd | 37 } |
29 rm -rf docker-py-$PKGVERSION |