actions.py 653 B

12345678910111213141516171819202122
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Licensed under the GNU General Public License, version 3.
  5. # See the file https://www.gnu.org/licenses/gpl-3.0.txt
  6. from pisi.actionsapi import autotools, pisitools, get
  7. i = "PREFIX=/usr"
  8. def setup():
  9. pass
  10. def build():
  11. autotools.make(i)
  12. def install():
  13. autotools.rawInstall("DESTDIR=%s %s" % (get.installDIR(), i))
  14. pisitools.insinto("/usr/share/bash-completion/completions", "misc/auto-completion/bash/nnn-completion.bash", "nnn")
  15. pisitools.insinto("/usr/share/zsh/functions/Completion/Unix", "misc/auto-completion/zsh/_nnn")
  16. pisitools.insinto("/usr/share/applications", "misc/desktop/nnn.desktop")