12345678910111213141516171819202122232425262728293031323334 |
- #!/usr/bin/python
- # -*- coding: utf-8 -*-
- # Licensed under the GNU General Public License, version 3.
- # See the file http://www.gnu.org/copyleft/gpl.txt
- from pisi.actionsapi import get
- from pisi.actionsapi import pisitools
- from pisi.actionsapi import shelltools
- NoStrip = ["/usr"]
- IgnoreAutodep = True
- Version = get.srcVERSION()
- def setup():
- # shelltools.system("pwd")
- shelltools.system("ar xf opera-developer_55.0.2962.0_amd64.deb")
- shelltools.system("tar xvf data.tar.xz")
- def install():
- # root owns sandbox as it is setuid
- shelltools.system("chown root:root usr/lib/x86_64-linux-gnu/opera-developer/opera_sandbox")
- # ensure setuid
- shelltools.system("chmod 4755 usr/lib/x86_64-linux-gnu/opera-developer/opera_sandbox")
- pisitools.insinto("/", "usr")
- # Because ew.
- pisitools.move("%s/usr/lib/x86_64-linux-gnu/*" % get.installDIR(), "%s/usr/lib" % get.installDIR())
- pisitools.removeDir("/usr/lib/x86_64-linux-gnu")
- pisitools.removeDir("/usr/share/lintian")
- pisitools.remove("/usr/bin/opera-developer")
- pisitools.insinto("/usr/bin/", "./usr/lib/x86_64-linux-gnu/opera-developer/opera-developer")
|