actions.py 777 B

123456789101112131415161718192021222324252627
  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 cmaketools
  6. from pisi.actionsapi import pisitools
  7. from pisi.actionsapi import get
  8. def setup():
  9. cmaketools.configure("-DCMAKE_SKIP_RPATH=ON -DCMAKE_INSTALL_LIBDIR=lib")
  10. def build():
  11. cmaketools.make()
  12. def install():
  13. cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
  14. # pisitools.dobin("src/test")
  15. # pisitools.rename("/usr/bin/test", "consoleq")
  16. pisitools.remove("/usr/include/qtermwidget4/qtermwidget.h")
  17. pisitools.insinto("/usr/include/qtermwidget4", "lib/*.h")
  18. pisitools.insinto("/usr/lib/pkgconfig", "qtermwidget4.pc")
  19. pisitools.dodoc("AUTHORS", "README", "COPYING")