actions.py 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #!/usr/bin/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("CFLAGS","%s -fPIE" % get.CFLAGS())
  12. #shelltools.export("LDFLAGS", "%s -pie -Wl,-z,relro,-z,now" % get.LDFLAGS())
  13. autotools.configure("--enable-symcryptrun \
  14. --disable-rpath \
  15. --enable-gpgtar \
  16. --enable-maintainer-mode")
  17. def build():
  18. autotools.make("-j1")
  19. autotools.make("-C doc html")
  20. def check():
  21. autotools.make("check")
  22. def install():
  23. autotools.rawInstall('DESTDIR=%s libexecdir="/usr/libexec"' % get.installDIR())
  24. # Compat symlinks
  25. pisitools.dosym("gpg2", "/usr/bin/gpg")
  26. pisitools.dosym("gpgv2", "/usr/bin/gpgv")
  27. pisitools.dosym("gpg2.1", "/usr/share/man/man1/gpg.1")
  28. pisitools.dosym("gpgv2.1", "/usr/share/man/man1/gpgv.1")
  29. # Lets make doc
  30. pisitools.dohtml("doc/*")
  31. pisitools.dohtml("doc/gnupg.html/*")
  32. pisitools.dodoc("ChangeLog", "NEWS", "README", "THANKS", "TODO")