actions.py 967 B

1234567891011121314151617181920212223242526
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. # Licensed under the GNU General Public License, version 3.
  4. # See the file http://www.gnu.org/licenses/gpl.txt
  5. from pisi.actionsapi import autotools
  6. from pisi.actionsapi import shelltools
  7. from pisi.actionsapi import get
  8. from pisi.actionsapi import qt5
  9. from pisi.actionsapi import pisitools
  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. qt5.make()
  15. #autotools.make("PREFIX=/usr QMAKE=/usr/bin/qmake LRELEASE=/usr/bin/lrelease")
  16. def install():
  17. qt5.install()
  18. #autotools.rawInstall("PREFIX=/usr DESTDIR=%s DOC_PATH=/usr/share/doc/%s" % (get.installDIR(),get.srcNAME()))
  19. pisitools.dodoc("Readme.txt","Release_notes.md","README.md","Copying.txt")
  20. pisitools.dosed("%s/usr/share/applications/smtube.desktop" % get.installDIR(), "Icon=smtube", "Icon=smtube.png")