actions.py 594 B

12345678910111213141516171819202122
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. # Licensed under the GNU General Public License, version 3.
  4. # See the file http://www.gnu.org/copyleft/gpl.txt
  5. from pisi.actionsapi import autotools
  6. from pisi.actionsapi import get
  7. from pisi.actionsapi import pisitools
  8. WorkDir="cmospwd-%s" % get.srcVERSION() + "/src/"
  9. def setup():
  10. pisitools.dosed("Makefile", "CFLAGS=-Wall -W -O2", "CFLAGS=-Wall -W -O2 -Wno-sign-compare -Wno-pointer-sign")
  11. def build():
  12. autotools.make("-B")
  13. def install():
  14. pisitools.insinto("/usr/bin", "cmospwd")
  15. pisitools.dodoc("../COPYING", "../cmospwd.txt")