actions.py 612 B

1234567891011121314151617181920
  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, pisitools, get
  7. def setup():
  8. shelltools.system("go generate")
  9. def build():
  10. shelltools.system("go build")
  11. def install():
  12. pisitools.dobin("ymuse")
  13. pisitools.insinto("/usr/share/applications", "resources/*.desktop")
  14. shelltools.copytree("resources/icons", "%s/%s/icons" % (get.installDIR(), get.dataDIR()))
  15. shelltools.copytree("resources/i18n/generated", "%s/%s/locale" % (get.installDIR(), get.dataDIR()))