diff --git a/multimedia/video/smtube/actions.py b/multimedia/video/smtube/actions.py index e346a77dfa..f6356fd3a5 100644 --- a/multimedia/video/smtube/actions.py +++ b/multimedia/video/smtube/actions.py @@ -6,14 +6,20 @@ from pisi.actionsapi import autotools from pisi.actionsapi import shelltools from pisi.actionsapi import get +from pisi.actionsapi import qt5 from pisi.actionsapi import pisitools def setup(): - pisitools.dosed("Makefile", "^DOC_PATH=.*$", "DOC_PATH=$(PREFIX)/share/doc/smplayer") + #pisitools.dosed("Makefile", "^DOC_PATH=.*$", "DOC_PATH=$(PREFIX)/share/doc/smplayer") + pisitools.dosed("Makefile", "PREFIX=/usr/local", "PREFIX=/usr") def build(): - autotools.make("PREFIX=/usr QMAKE=/usr/bin/qmake LRELEASE=/usr/bin/lrelease") + qt5.make() + #autotools.make("PREFIX=/usr QMAKE=/usr/bin/qmake LRELEASE=/usr/bin/lrelease") def install(): - autotools.rawInstall("PREFIX=/usr DESTDIR=%s DOC_PATH=/usr/share/doc/%s" % (get.installDIR(),get.srcNAME())) - pisitools.dodoc("Readme.txt","Release_notes.txt","Changelog","Copying.txt") + qt5.install() + #autotools.rawInstall("PREFIX=/usr DESTDIR=%s DOC_PATH=/usr/share/doc/%s" % (get.installDIR(),get.srcNAME())) + pisitools.dodoc("Readme.txt","Release_notes.txt","Changelog","Copying.txt") + + pisitools.dosed("%s/usr/share/applications/smtube.desktop" % get.installDIR(), "Icon=smtube", "Icon=smtube.png") diff --git a/multimedia/video/smtube/files/smtube-makeflags.patch b/multimedia/video/smtube/files/smtube-makeflags.patch new file mode 100644 index 0000000000..735b372b28 --- /dev/null +++ b/multimedia/video/smtube/files/smtube-makeflags.patch @@ -0,0 +1,11 @@ +--- a/Makefile ++++ b/Makefile +@@ -22,7 +22,7 @@ DEFS=DATA_PATH=\\\"$(DATA_PATH)\\\" \ + + src/smtube: + # ./get_svn_revision.sh +- +cd src && $(QMAKE) $(QMAKE_OPTS) && $(DEFS) $(MAKE) ++ +cd src && $(QMAKE) $(QMAKE_OPTS) && $(DEFS) $(MAKE) $(MAKEFLAGS) + cd src && $(LRELEASE) smtube.pro + + clean: diff --git a/multimedia/video/smtube/pspec.xml b/multimedia/video/smtube/pspec.xml index a04ca62aea..4fd2601cb8 100644 --- a/multimedia/video/smtube/pspec.xml +++ b/multimedia/video/smtube/pspec.xml @@ -20,6 +20,9 @@ qt5-webkit-devel qt5-linguist + + smtube-makeflags.patch +