actions.py 841 B

123456789101112131415161718192021222324252627
  1. # -*- coding: utf-8 -*-
  2. #
  3. # Licensed under the GNU General Public License, version 3.
  4. # See the file http://www.gnu.org/licenses/gpl.txt
  5. from pisi.actionsapi import get
  6. from pisi.actionsapi import autotools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import shelltools
  9. def setup():
  10. autotools.configure("--prefix=/usr \
  11. --sysconfdir=/etc \
  12. --libexecdir=/usr/lib/cups-pk-helper")
  13. def build():
  14. autotools.make()
  15. def install():
  16. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  17. shelltools.system("install -dm755 %s/usr/share/dbus-1/system.d" % get.installDIR())
  18. pisitools.domove("/etc/dbus-1/system.d/*", "/usr/share/dbus-1/system.d")
  19. pisitools.removeDir("/etc")
  20. pisitools.dodoc("AUTHORS", "ChangeLog", "COPYING", "README", "NEWS", "HACKING")