Files
2026-02-18 12:37:41 +03:00

40 lines
1.2 KiB
Python
Executable File

#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import shelltools
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import qt5
from pisi.actionsapi import get
import os
def setup():
#shelltools.system("patch -R -p1 < 3eaed3d6.diff")
pisitools.dosed(".qmake.conf", "5.15.18", "5.15.16")
if not os.path.exists(".git"):
shelltools.system("git init")
shelltools.system("git add .")
shelltools.system("git submodule init")
shelltools.system('git submodule set-url src/3rdparty/mapbox-gl-native "%s/qtlocation-mapboxgl"' % get.workDIR())
shelltools.system("git -c protocol.file.allow=always submodule update")
qt5.configure()
def build():
qt5.make()
qt5.make("docs")
def install():
qt5.install("INSTALL_ROOT=%s install_docs" % get.installDIR())
#I hope qtchooser will manage this issue
#for bin in shelltools.ls("%s/usr/lib/qt5/bin" % get.installDIR()):
#pisitools.dosym("/usr/lib/qt5/bin/%s" % bin, "/usr/bin/%s-qt5" % bin)
pisitools.dodoc("LICENSE*")