actions.py 1.0 KB

1234567891011121314151617181920212223242526272829303132
  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 autotools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import shelltools
  9. from pisi.actionsapi import get
  10. def build():
  11. shelltools.system("./build.sh \
  12. -with-pthreads \
  13. -enable-canvas \
  14. -enable-system-cairo \
  15. -enable-gio \
  16. -with-system-zlib \
  17. -enable-ffmpeg \
  18. -prefix=/usr")
  19. def install():
  20. shelltools.makedirs("%s/usr/share/" % get.installDIR())
  21. shelltools.copytree("compiled/dist", "%s/usr/share/nightingale" % get.installDIR())
  22. pisitools.insinto("/usr/share/pixmaps/", "app/branding/nightingale-512.png", "nightingale.png")
  23. pisitools.dosym("/usr/share/nightingale/nightingale-bin", "/usr/bin/nightingale")
  24. pisitools.dodoc("*.txt", "LICENSE", "README")