actions.py 767 B

1234567891011121314151617181920212223242526272829
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Licensed under the GNU General Public License, version 2
  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. shelltools.export("PTHREAD_LIBS", "-lpthread")
  11. shelltools.export("PTHREAD_CFLAGS", "-pthread")
  12. def setup():
  13. # Use system libopenal
  14. pisitools.dosed("source/unix/qal_unix.c", "libopenal.so", "$LIBOPENAL")
  15. autotools.configure()
  16. def build():
  17. autotools.make()
  18. def install():
  19. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  20. #pisitools.rename("/usr/bin/crx", "alienarena")
  21. #pisitools.rename("/usr/bin/crx-ded", "alienarena-server")