actions.py 760 B

1234567891011121314151617181920212223242526272829
  1. #!/usr/bin/python
  2. #!/usr/bin/python
  3. # -*- coding: utf-8 -*-
  4. #
  5. # Licensed under the GNU General Public License, version 3.
  6. # See the file http://www.gnu.org/licenses/gpl.txt
  7. from pisi.actionsapi import get
  8. from pisi.actionsapi import autotools
  9. from pisi.actionsapi import pisitools
  10. from pisi.actionsapi import shelltools
  11. WorkDir = "zita-convolver-%s" % get.srcVERSION()
  12. def setup():
  13. shelltools.system("sed -e '/native/d; s/ldconfig/& -N $(DESTDIR)\/$(LIBDIR)/' -i source/Makefile")
  14. # autotools.configure()
  15. def build():
  16. autotools.make("-C source")
  17. #def check():
  18. #autotools.make("check")
  19. def install():
  20. autotools.rawInstall("-C source DESTDIR=%s PREFIX=/usr LIBDIR=/usr/lib" % get.installDIR())
  21. pisitools.dodoc("COPYING", "README")