actions.py 962 B

12345678910111213141516171819202122232425262728
  1. #!/usr/bin/env 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 autotools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import shelltools
  9. from pisi.actionsapi import get
  10. def setup():
  11. shelltools.system("sed -i 's/com.gitlab.jurassicplayer.SnowyNightMiku/org.kde.sweet-cat.desktop/g' metadata.json")
  12. shelltools.cd("../pisilinux.splash-0.1")
  13. shelltools.system("sed -i 's/com.gitlab.jurassicplayer.SnowyNightMiku/org.kde.pisilinux.desktop/g' metadata.json")
  14. #autotools.configure()
  15. #def build():
  16. #autotools.make()
  17. def install():
  18. shelltools.cd("../pisilinux.splash-0.1")
  19. pisitools.insinto("/usr/share/plasma/look-and-feel/org.kde.pisilinux.desktop", "*")
  20. shelltools.cd("../Sweet-Cat_Animated-0.1")
  21. pisitools.insinto("/usr/share/plasma/look-and-feel/org.kde.sweet-cat.desktop", "*")