actions.py 1.1 KB

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 get
  7. from pisi.actionsapi import autotools
  8. from pisi.actionsapi import pisitools
  9. from pisi.actionsapi import shelltools
  10. def setup():
  11. pisitools.dosed("dist/tmpfiles.d/tpm2-tss-fapi.conf.in", "default:group:tss:rwx", deleteLine=True)
  12. # shelltools.system("./bootstrap")
  13. autotools.configure("--enable-static=no \
  14. --with-udevrulesprefix=60- \
  15. --with-tmpfilesdir=/usr/lib/tmpfiles.d \
  16. --with-sysusersdir=/usr/lib/sysusers.d")
  17. # fix unused direct dependency analysis
  18. pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  19. def build():
  20. autotools.make()
  21. def install():
  22. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  23. #shelltools.move("%s/usr/lib/tmpfiles.d/tpm2-tss-fapi.conf" % get.installDIR(), "%s/usr/lib/sysusers.d" % get.installDIR())
  24. pisitools.dodoc("LICENSE", "README*")