actions.py 746 B

123456789101112131415161718192021222324252627
  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/copyleft/gpl.txt.
  6. from pisi.actionsapi import autotools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import shelltools
  9. from pisi.actionsapi import get
  10. WorkDir = "secure_delete-3.1-a"
  11. def build():
  12. shelltools.export("CFLAGS", "%s -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64" % get.CFLAGS())
  13. autotools.make()
  14. def install():
  15. autotools.rawInstall("prefix=%s/usr" % get.installDIR())
  16. pisitools.doman("*.1")
  17. pisitools.dodoc("CHANGES", "FILES", "README*", "TODO", "*.doc")
  18. pisitools.rename("/usr/bin/smem", "sdmem")
  19. pisitools.rename("/usr/share/man/man1/smem.1", "sdmem.1")