actions.py 775 B

1234567891011121314151617181920212223242526272829
  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 autotools, shelltools
  7. from pisi.actionsapi import pisitools, cmaketools
  8. from pisi.actionsapi import get
  9. WorkDir = "SFML-2.5.1"
  10. def setup():
  11. shelltools.system("mkdir build")
  12. shelltools.system("cd build")
  13. cmaketools.configure("-DCMAKE_INSTALL_PREFIX=/usr \
  14. -DSFML_USE_SYSTEM_DEPS=ON \
  15. -DSFML_BUILD_EXAMPLES=1 \
  16. -DSFML_BUILD_DOC=1 \
  17. -DSFML_INSTALL_PKGCONFIG_FILES=1")
  18. def build():
  19. cmaketools.make()
  20. def install():
  21. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  22. pisitools.insinto("/usr/share/licenses/sfml/LICENSE", "license.md")