actions.py 948 B

123456789101112131415161718192021222324252627282930313233
  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 shelltools
  9. from pisi.actionsapi import get
  10. def setup():
  11. #shelltools.export("PYTHON", "/usr/bin/python3.6")
  12. autotools.configure("--sysconfdir=/etc \
  13. --enable-drm \
  14. --enable-geoclue2 \
  15. --enable-randr \
  16. --enable-vidmode \
  17. --with-systemduserunitdir=/usr/lib/systemd/user")
  18. pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  19. def build():
  20. autotools.make()
  21. def install():
  22. #autotools.install()
  23. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  24. pisitools.dodoc("CONTRIB*", "COPYING", "README*")