actions.py 759 B

123456789101112131415161718192021222324252627282930
  1. # -*- coding: utf-8 -*-
  2. #
  3. # Licensed under the GNU General Public License, version 3.
  4. # See the file http://www.gnu.org/licenses/gpl.txt
  5. from pisi.actionsapi import shelltools
  6. from pisi.actionsapi import autotools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import get
  9. def setup():
  10. autotools.autoreconf("-vif")
  11. shelltools.system("./autogen.sh")
  12. autotools.configure("--with-tests")
  13. def build():
  14. autotools.make()
  15. def check():
  16. shelltools.cd("tests")
  17. shelltools.system("./test_all.sh")
  18. def install():
  19. autotools.rawInstall("DESTDIR=%s prefix=/usr" % get.installDIR())
  20. pisitools.dosed("%s/usr/lib/pkgconfig/libqrencode.pc" % get.installDIR(), "/local", "")
  21. pisitools.dodoc("COPYING", "NEWS", "README")