actions.py 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. #!/usr/bin/env python3
  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 inary.actionsapi import shelltools
  7. from inary.actionsapi import autotools
  8. from inary.actionsapi import inarytools
  9. from inary.actionsapi import get
  10. def setup():
  11. #shelltools.system("gtkdocize --copy")
  12. #autotools.autoreconf("-ivf")
  13. autotools.configure("--prefix=/usr \
  14. --sysconfdir=/etc \
  15. --localstatedir=/var \
  16. --libexecdir=/usr/lib/udisks \
  17. --disable-static \
  18. --enable-lvm2 \
  19. --disable-gtk-doc \
  20. --disable-man-pages")
  21. def build():
  22. autotools.make()
  23. def install():
  24. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  25. shelltools.move("%s/lib/udev"% get.installDIR(), "%s/usr/lib/udev"% get.installDIR())
  26. inarytools.removeDir("/lib")
  27. inarytools.dodoc("AUTHORS", "COPYING", "NEWS", "README.md")