smtube rebuild
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -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:
|
||||
@@ -20,6 +20,9 @@
|
||||
<Dependency>qt5-webkit-devel</Dependency>
|
||||
<Dependency>qt5-linguist</Dependency>
|
||||
</BuildDependencies>
|
||||
<Patches>
|
||||
<Patch level="1">smtube-makeflags.patch</Patch>
|
||||
</Patches>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
|
||||
Reference in New Issue
Block a user