actions.py 755 B

1234567891011121314151617181920212223242526
  1. #!/usr/bin/env 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 get
  9. #def setup():
  10. #autotools.configure()
  11. def build():
  12. pisitools.dosed("lgi/Makefile", "PREFIX = /usr/local", "PREFIX = /usr")
  13. autotools.make("LUA_INCDIR=/usr/include/luajit-2.0/ \
  14. LUA_CFLAGS='$(pkg-config --cflags luajit) -O2'")
  15. #autotools.make()
  16. def install():
  17. autotools.rawInstall("LUA_LIBDIR=/usr/lib/lua/5.3 \
  18. LUA_SHAREDIR=/usr/share/lua/5.3 DESTDIR=%s" % get.installDIR())
  19. pisitools.dodoc("LICENSE", "README*")