actions.py 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. --with-appindicator=yes \
  26. --without-selinux")
  27. pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  28. def build():
  29. autotools.make()
  30. def install():
  31. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  32. pisitools.dodoc("README", "COPYING")