Mercurial > vanilla
comparison python/py-daemon/py-daemon.sh @ 143:329cad4dc6b0
python: merge .sh and .info
author | David Demelier <markand@malikania.fr> |
---|---|
date | Mon, 11 Mar 2019 20:20:00 +0100 |
parents | 9ac387ca4599 |
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-daemon.info | 19 PKGNAME=py-daemon |
20 PKGVERSION=2.2.0 | |
21 PKGREVISION=1 | |
22 PKGLICENSE="APACHE20" | |
23 PKGSUMMARY="Library to implement a well-behaved Unix daemon process" | |
24 PKGDOWNLOAD="https://files.pythonhosted.org/packages/99/2a/75fe6aa7086e838570f29899f674e7896a42be26d9fff33f90d990e599d2/python-daemon-$PKGVERSION.tar.gz" | |
25 PKGDEPENDS="python/python" | |
19 | 26 |
20 set -e | 27 build() |
28 { | |
29 rm -rf python-daemon-$PKGVERSION | |
30 tar xvaf python-daemon-$PKGVERSION.tar.gz | |
31 pushd python-daemon-$PKGVERSION | |
21 | 32 |
22 rm -rf python-daemon-$PKGVERSION | 33 python setup.py install --root=${DESTDIR:-/} -O1 |
23 tar xvaf python-daemon-$PKGVERSION.tar.gz | |
24 pushd python-daemon-$PKGVERSION | |
25 | 34 |
26 python setup.py install --root=${DESTDIR:-/} -O1 | 35 popd |
27 | 36 rm -rf python-daemon-$PKGVERSION |
28 popd | 37 } |
29 rm -rf python-daemon-$PKGVERSION |