actions.py 894 B

12345678910111213141516171819202122232425262728293031
  1. #!/usr/bin/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 shelltools
  7. from pisi.actionsapi import autotools
  8. from pisi.actionsapi import pisitools
  9. from pisi.actionsapi import get
  10. WorkDir = "splix"
  11. def build():
  12. shelltools.export("OS_CFLAGS", get.CFLAGS())
  13. shelltools.export("OS_LDFLAGS", get.LDFLAGS())
  14. shelltools.export("OS_CXXFLAGS", "%s -fno-strict-aliasing" % get.CXXFLAGS())
  15. shelltools.makedirs("ppd")
  16. autotools.make("-C ppd")
  17. autotools.make("V=1")
  18. def install():
  19. autotools.install("DESTDIR=%s CUPSPPD=/usr/share/cups/model/splix" % get.installDIR())
  20. # Install color profiles
  21. pisitools.insinto("/usr/share/cups/model/samsung/cms", "cms/*")
  22. pisitools.dodoc("AUTHORS", "ChangeLog", "COPYING", "README", "THANKS", "TODO")