actions.py 683 B

12345678910111213141516171819202122232425
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Licensed under the GNU General Public License, version 3.
  5. # See the file http://www.gnu.org/licenses/gpl.txt
  6. from pisi.actionsapi import autotools
  7. from pisi.actionsapi import pisitools
  8. def setup():
  9. autotools.configure("--with-scores-group=users \
  10. --with-scores-user=root")
  11. def build():
  12. autotools.make()
  13. def install():
  14. autotools.install()
  15. pisitools.domove("/var/games/gweled.Normal.scores", "/var/state/gweled/")
  16. pisitools.domove("/var/games/gweled.Timed.scores", "/var/state/gweled/")
  17. pisitools.removeDir("/var/games")
  18. pisitools.dodoc("AUTHORS", "NEWS", "ChangeLog", "COPYING")