actions.py 703 B

1234567891011121314151617181920212223242526
  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 shelltools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import get
  9. WorkDir = "lf-r%s" % get.srcVERSION()
  10. def build():
  11. shelltools.export("version", "%s" % get.srcVERSION())
  12. shelltools.system("GO111MODULE=on GOPATH=%s gen/build.sh" % get.workDIR())
  13. def install():
  14. pisitools.dobin("lf")
  15. pisitools.doman("lf.1")
  16. pisitools.insinto("/usr/share/applications", "lf.desktop")
  17. pisitools.dodoc("LICENSE", "README.md")
  18. for i in ["etc/*"]:
  19. pisitools.insinto("/usr/share/doc/lf/examples/", "%s" % i)