actions.py 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Licensed under the GNU General Public License, version 3.
  5. # See the file http://www.gnu.org/licenses/gpl.txt
  6. from pisi.actionsapi import get
  7. from pisi.actionsapi import autotools
  8. from pisi.actionsapi import pisitools
  9. from pisi.actionsapi import mesontools
  10. from pisi.actionsapi import shelltools
  11. def setup():
  12. # shelltools.cd("%s" % get.workDIR())
  13. # shelltools.copytree("AppStream-%s" % get.srcVERSION(), "AppStream-qt6")
  14. # shelltools.cd("AppStream-%s" % get.srcVERSION())
  15. mesontools.configure("--libexecdir=lib \
  16. -Dstemming=false \
  17. -Dqt=true \
  18. -Dqt-versions=5,6 \
  19. -Dapidocs=false \
  20. -Dvapi=true")
  21. # shelltools.cd("../AppStream-qt6")
  22. # mesontools.configure("--libexecdir=lib \
  23. # -Dstemming=false \
  24. # -Dqt=true \
  25. # -Dapidocs=false \
  26. # -Dvapi=true")
  27. def build():
  28. mesontools.build()
  29. # shelltools.cd("../AppStream-qt6")
  30. # mesontools.build()
  31. def install():
  32. mesontools.install()
  33. # shelltools.cd("../AppStream-qt6")
  34. # mesontools.install()
  35. pisitools.insinto("/usr/share/pixmaps/", "docs/images/src/png/appstream-logo.png")
  36. pisitools.dodoc("AUTHORS", "COPYING", "NEWS", "README*")