actions.py 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  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 autotools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import shelltools
  9. from pisi.actionsapi import get
  10. def setup():
  11. shelltools.export("OPTIMIZER", get.CFLAGS())
  12. shelltools.export("DEBUG", "-DNDEBUG")
  13. autotools.rawConfigure("--libdir=/lib \
  14. --disable-static \
  15. --mandir=/usr/share/man \
  16. --libexecdir=/lib \
  17. --bindir=/bin")
  18. pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  19. def build():
  20. autotools.make()
  21. def install():
  22. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  23. shelltools.chmod("%s/lib/libacl.so.*.*.*" % get.installDIR(), 0755)
  24. shelltools.copytree("%s/lib/pkgconfig" % get.installDIR(), "%s/usr/lib/pkgconfig" % get.installDIR())
  25. pisitools.removeDir("/lib/pkgconfig")
  26. pisitools.dodoc("README")