actions.py 918 B

123456789101112131415161718192021222324252627282930
  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 get
  7. from pisi.actionsapi import autotools
  8. from pisi.actionsapi import pisitools
  9. from pisi.actionsapi import shelltools
  10. def setup():
  11. # Fedora: default to ntfs-3g
  12. shelltools.system("sed -i data/builtin_mount_options.conf -e 's/ntfs_drivers=ntfs3,ntfs/ntfs_drivers=ntfs,ntfs3/'")
  13. autotools.configure("--disable-static \
  14. --enable-fhs-media \
  15. --enable-btrfs \
  16. --enable-lvm2 \
  17. --with-systemdsystemunitdir=no \
  18. --disable-gtk-doc")
  19. def build():
  20. autotools.make()
  21. def install():
  22. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  23. pisitools.dodoc("AUTHORS", "COPYING", "NEWS", "README*")