actions.py 743 B

12345678910111213141516171819202122232425262728
  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 pisitools
  7. from pisi.actionsapi import autotools
  8. from pisi.actionsapi import get
  9. import os
  10. def setup():
  11. autotools.configure()
  12. def build():
  13. autotools.make("bash_completion.sh")
  14. def install():
  15. autotools.rawInstall('DESTDIR=%s' % get.installDIR())
  16. # provided by util-linux , networkmanager , remove Slackware's makepkg completion
  17. blacklist = ["hd", "ncal", "makepkg"]
  18. for comp in blacklist:
  19. pisitools.remove("/usr/share/bash-completion/completions/%s" % comp)
  20. pisitools.dodoc("AUTHORS", "CHANGES", "COPYING", "README.md")