actions.py 881 B

123456789101112131415161718192021222324252627282930313233
  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 get
  7. from pisi.actionsapi import shelltools
  8. from pisi.actionsapi import autotools
  9. from pisi.actionsapi import pisitools
  10. from pisi.actionsapi import libtools
  11. def setup():
  12. # shelltools.system("NOCONFIGURE=1 ./autogen.sh")
  13. autotools.autoreconf("-vfi")
  14. autotools.automake("-afc")
  15. libtools.libtoolize("--automake")
  16. autotools.aclocal()
  17. autotools.autoconf()
  18. autotools.configure("--disable-static \
  19. --with-gtk4 \
  20. --enable-shared")
  21. def build():
  22. autotools.make()
  23. def install():
  24. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  25. pisitools.dodir("/usr/lib/pkgconfig")
  26. pisitools.dodoc("COPYING*", "README*")