-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathactions.py
37 lines (24 loc) · 1.31 KB
/
actions.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get
WorkDir = "playonlinux"
NoStrip = "/"
datadir = "/usr/share"
def install():
installdir = get.installDIR()+ datadir
pisitools.dodir(datadir)
pisitools.dodir("%s/applications" % datadir)
shelltools.copytree("%s/playonlinux" % get.workDIR(), "%s/" % installdir)
pisitools.dobin("%s/playonlinux/playonlinux" % installdir)
pisitools.domo("%s/playonlinux/lang/po/tr.po" % installdir, "tr", "pol.mo")
# pisitools.domove("usr/share/locale/tr/LC_MESSAGES", "/usr/share/playonlinux/lang/locale/tr")
pisitools.dodoc("%s/playonlinux/LICENCE" % installdir, "%s/playonlinux/CHANGELOG" % installdir)
shelltools.move("%s/etc/PlayOnLinux.desktop" % (get.installDIR() + "/usr/share/playonlinux"), "%s/usr/share/applications/PlayOnLinux.desktop" % get.installDIR())
shelltools.unlink("%s/usr/bin/playonlinux" % get.installDIR())
shelltools.sym("%s/usr/share/playonlinux/playonlinux" % get.installDIR(), "%s/usr/bin/playonlinux" % get.installDIR() )
pisitools.dosed("playonlinux", "python2.6 mainwindow.py", "python2.7 mainwindow.py")