#!/usr/bin/env 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 pisitools, shelltools, get Version = get.srcVERSION() WorkDir="." def setup(): shelltools.system("unzip uyapeditor_%s_amd64.zip" % Version) shelltools.system("ar x uyapeditor_%s_amd64.deb" % Version) shelltools.system("tar xf data.tar.xz") def install(): pisitools.insinto("/usr/share/UYAPEditor", "usr/share/UYAPEditor/*") pisitools.insinto("/usr/share/applications", "usr/share/applications/sablon.desktop") pisitools.insinto("/usr/share/applications", "usr/share/applications/dokuman.desktop") pisitools.insinto("/usr/share/icons", "usr/share/icons/*") pisitools.insinto("/usr/share/mime/packages", "usr/share/mime/packages/udf.xml") shelltools.system("chmod -R 0755 %s/usr/share/UYAPEditor/*" % get.installDIR())