actions.py 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. #!/usr/bin/env python3
  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 inary.actionsapi import autotools
  7. from inary.actionsapi import inarytools
  8. from inary.actionsapi import shelltools
  9. from inary.actionsapi import get
  10. WorkDir = "lash-0.6.0.594"
  11. def setup():
  12. shelltools.export("LDFLAGS", '-ldl -lm -ltirpc')
  13. autotools.configure("--with-python CFLAGS=-I/usr/include/tirpc")
  14. def build():
  15. shelltools.export("LDFLAGS", '-ldl -lm -ltirpc')
  16. autotools.make()
  17. def install():
  18. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  19. for s in ("16", "24", "48", "96"):
  20. inarytools.dodir("/usr/share/icons/hicolor/%sx%s/apps" % (s, s))
  21. inarytools.domove("usr/share/lash/icons/lash_%spx.png" % s, "/usr/share/icons/hicolor/%sx%s/apps" % (s, s), "lash.png")
  22. inarytools.domove("usr/share/lash/icons/lash.svg", "/usr/share/icons/hicolor/scalable/apps")
  23. inarytools.dodoc("AUTHORS", "ChangeLog", "COPYING", "NEWS", "README*", "TODO")