Mercurial > vanilla
diff 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 |
line wrap: on
line diff
--- a/python/py-daemon/py-daemon.sh Mon Mar 11 20:12:00 2019 +0100 +++ b/python/py-daemon/py-daemon.sh Mon Mar 11 20:20:00 2019 +0100 @@ -1,6 +1,7 @@ #!/bin/sh # # Copyright (c) 2019 Stéphane Péquignot <contact@stephanepequignot.fr> +# Copyright (c) 2019 David Demelier <markand@malikania.fr> # # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted, provided that the above @@ -15,15 +16,22 @@ # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. # -source ./py-daemon.info - -set -e +PKGNAME=py-daemon +PKGVERSION=2.2.0 +PKGREVISION=1 +PKGLICENSE="APACHE20" +PKGSUMMARY="Library to implement a well-behaved Unix daemon process" +PKGDOWNLOAD="https://files.pythonhosted.org/packages/99/2a/75fe6aa7086e838570f29899f674e7896a42be26d9fff33f90d990e599d2/python-daemon-$PKGVERSION.tar.gz" +PKGDEPENDS="python/python" -rm -rf python-daemon-$PKGVERSION -tar xvaf python-daemon-$PKGVERSION.tar.gz -pushd python-daemon-$PKGVERSION +build() +{ + rm -rf python-daemon-$PKGVERSION + tar xvaf python-daemon-$PKGVERSION.tar.gz + pushd python-daemon-$PKGVERSION -python setup.py install --root=${DESTDIR:-/} -O1 + python setup.py install --root=${DESTDIR:-/} -O1 -popd -rm -rf python-daemon-$PKGVERSION + popd + rm -rf python-daemon-$PKGVERSION +}