actions.py 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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 pisitools
  8. from pisi.actionsapi import autotools
  9. from pisi.actionsapi import get
  10. def setup():
  11. # autotools.autoreconf("-vfi")
  12. autotools.configure("--disable-dependency-tracking \
  13. --disable-static \
  14. --disable-migration \
  15. --disable-maintainer-mode \
  16. --with-modem-manager-1 \
  17. --with-bluetooth \
  18. --without-gnome \
  19. --enable-more-warnings=yes \
  20. --sysconfdir=/etc \
  21. --localstatedir=/var \
  22. --prefix=/usr \
  23. --without-team \
  24. --libexecdir=/usr/lib/NetworkManager \
  25. --without-selinux")
  26. pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  27. def build():
  28. autotools.make()
  29. def install():
  30. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  31. pisitools.dodoc("README", "COPYING")