actions.py 805 B

123456789101112131415161718192021222324252627282930
  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 cmaketools
  7. from pisi.actionsapi import shelltools
  8. from pisi.actionsapi import pisitools
  9. def setup():
  10. cmaketools.configure("-DCMAKE_INSTALL_PREFIX=/usr \
  11. -DCMAKE_INSTALL_LIBDIR=/usr/lib \
  12. -DCMAKE_BUILD_TYPE=Release")
  13. def build():
  14. cmaketools.make()
  15. def install():
  16. cmaketools.install()
  17. # Update Turkish translation
  18. #shelltools.system("lrelease src/translations/keepassx-tr_TR.ts")
  19. # pisitools.insinto("/usr/share/keepassx/i18n/", "src/translations/*tr*.qm")
  20. #Remove unused mime info
  21. #pisitools.removeDir("/usr/share/mimelnk")
  22. #pisitools.dodoc("changelog", "COPYING")