actions.py 931 B

1234567891011121314151617181920212223242526272829303132333435
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Licensed under the GNU General Public License, version 3.
  5. # See the file https://www.gnu.org/licenses/gpl-3.0.txt
  6. from pisi.actionsapi import shelltools
  7. from pisi.actionsapi import cmaketools
  8. from pisi.actionsapi import pisitools
  9. from pisi.actionsapi import get
  10. j = "-DCMAKE_BUILD_TYPE=RelWithDebInfo \
  11. -DCMAKE_INSTALL_PREFIX=/usr -L \
  12. "
  13. def setup():
  14. pisitools.flags.add("-pthread -fpermissive -lXpm")
  15. pisitools.unlinkDir("src/i18n/de_DE")
  16. shelltools.makedirs("build")
  17. shelltools.cd("build")
  18. cmaketools.configure(j, sourceDir = '..')
  19. def build():
  20. shelltools.cd("build")
  21. cmaketools.make()
  22. def install():
  23. pisitools.dobin("build/src/florb")
  24. pisitools.dopixmaps("src/res/florb.png")
  25. shelltools.chmod("src/res/florb.svg", mode = 0644)
  26. pisitools.insinto("/usr/share/icons/hicolor/scalable/apps", "src/res/florb.svg")
  27. # pisitools.dodoc("LICENSE.txt", "README.txt")