actions.py 862 B

12345678910111213141516171819202122232425262728293031
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Copyright 2015 TUBITAK/UEKAE
  5. # Licensed under the GNU General Public License, version 2.
  6. # See the file http://www.gnu.org/copyleft/gpl.txt.
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import shelltools
  9. from pisi.actionsapi import qt5
  10. def setup():
  11. #qt5.configure("pgmodeler.pro")
  12. shelltools.system("qmake -r pgmodeler.pro PREFIX+=/usr BINDIR+=/usr/bin LIBDIR+=/usr/lib RESDIR+=/usr/share")
  13. def build():
  14. qt5.make()
  15. def install():
  16. qt5.install()
  17. pisitools.domove("/usr/lib/pgmodeler/lib*", "/usr/lib")
  18. pisitools.insinto("usr/share/icons/hicolor/64x64/apps", "conf/pgmodeler_logo.png")
  19. pisitools.dosym("/usr/share/pgmodeler/schemas", "/etc/pgmodeler/schemas")
  20. pisitools.dodir("/usr/lib/pgmodeler/plugins")
  21. pisitools.dodoc("LICENSE", "CHANGELOG.md", "README*")