actions.py 1010 B

12345678910111213141516171819202122232425262728293031323334
  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("drv")
  18. autotools.make("all DRV_ONLY=1")
  19. def install():
  20. autotools.install("DESTDIR=%s DRV_ONLY=1" % get.installDIR())
  21. autotools.install("DESTDIR=%s -C ppd CUPSPPD=/usr/share/cups/model/splix" % get.installDIR())
  22. # Install color profiles
  23. # pisitools.insinto("/usr/share/cups/model/samsung/cms", "cms/*")
  24. pisitools.dodoc("AUTHORS", "ChangeLog", "COPYING", "README*", "THANKS", "TODO")