actions.py 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  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 libtools
  9. from pisi.actionsapi import get
  10. def setup():
  11. autotools.autoreconf("-vfi")
  12. # libtools.libtoolize("--force --install")
  13. autotools.configure("--disable-dependency-tracking \
  14. --enable-alsa \
  15. --enable-alsa-mmap \
  16. --enable-pulse \
  17. --disable-arts \
  18. --disable-esd \
  19. --disable-nas \
  20. --enable-shared \
  21. --disable-static")
  22. pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  23. def build():
  24. autotools.make()
  25. def install():
  26. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  27. pisitools.removeDir("/usr/share/doc")
  28. pisitools.dohtml("doc/*")
  29. pisitools.dodoc("AUTHORS", "CHANGES", "README", "TODO")