1234567891011121314151617181920212223242526272829 |
- #!/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 shelltools
- from pisi.actionsapi import pisitools
- from pisi.actionsapi import get
- WorkDir = "%s" % get.ARCH()
- def install():
- # Define bits variable for 32-bit and 64-bit architectures
- bits = "amd64" if get.ARCH() == "x86_64" else "i386"
- # Extract Debian package
- shelltools.system("ar -xv plexmediaserver_1.3.3.3148-b38628e_%s.deb" % bits)
- shelltools.system("tar -xzvf data.tar.gz")
- pisitools.insinto("/usr/share/pixmaps/", "usr/share/pixmaps/plexmediamanager.png")
- pisitools.insinto("/usr/share/applications/", "usr/share/applications/plexmediamanager.desktop")
- pisitools.insinto("/", "etc")
- pisitools.insinto("/usr/", "usr/lib")
- pisitools.insinto("/usr/", "usr/sbin")
- shelltools.system("service apache start")
|