actions.py 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. def setup():
  11. shelltools.system("./autogen.sh")
  12. shelltools.export("CFLAGS", "%s -D_FILE_OFFSET_BITS=64" % get.CFLAGS())
  13. autotools.configure("--prefix=/usr \
  14. --sbin=/usr/bin \
  15. --mandir=/usr/share/man \
  16. --disable-ldconfig \
  17. --disable-static \
  18. --with-fuse=external \
  19. --enable-posix-acls \
  20. --enable-ldscript \
  21. --enable-extras")
  22. def build():
  23. autotools.make()
  24. def install():
  25. autotools.rawInstall("DESTDIR=%s rootbindir=/usr/bin rootsbindir=/usr/bin rootlibdir=/usr/lib" % get.installDIR())
  26. pisitools.domove("/usr/bin/ntfs-3g.*", "/bin")
  27. # Create some compat symlinks
  28. pisitools.dosym("/usr/bin/ntfs-3g", "/sbin/mount.ntfs")
  29. pisitools.dodoc("AUTHORS", "ChangeLog", "COPYING*", "CREDITS", "NEWS", "README")
  30. pisitools.dosym("/usr/share/doc/ntfs-3g", "/usr/share/doc/ntfsprogs")