actions.py 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  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 shelltools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import autotools
  9. from pisi.actionsapi import get
  10. def setup():
  11. pisitools.dosed("Makefile", "^DOC_PATH=.*$", "DOC_PATH=$(PREFIX)/share/doc/smplayer")
  12. pisitools.dosed("Makefile", "PREFIX=/usr/local", "PREFIX=/usr")
  13. def build():
  14. autotools.make("PREFIX=/usr QMAKE=/usr/bin/qmake -j1 LRELEASE=/usr/bin/lrelease")
  15. shelltools.cd("smplayer-skins-20.11.0")
  16. autotools.make("PREFIX=/usr")
  17. shelltools.cd("..")
  18. shelltools.cd("smplayer-themes-20.11.0")
  19. autotools.make("PREFIX=/usr")
  20. def install():
  21. autotools.rawInstall("PREFIX=/usr DESTDIR=%s DOC_PATH=/usr/share/doc/%s" % (get.installDIR(),get.srcNAME()))
  22. shelltools.cd("smplayer-skins-20.11.0")
  23. autotools.rawInstall("DESTDIR=%s PREFIX=/usr install" % get.installDIR())
  24. shelltools.cd("..")
  25. shelltools.cd("smplayer-themes-20.11.0")
  26. autotools.rawInstall("DESTDIR=%s PREFIX=/usr install" % get.installDIR())