Files
2026-09-13 04:44:30 +03:00

26 lines
958 B
Python

#!/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
NoStrip = ["/opt", "/usr"]
IgnoreAutodep = True
def setup():
shelltools.system("ar xf jopdf-linux-amd64_setup.deb")
shelltools.system("tar xf data.tar.xz")
def install():
pisitools.insinto("/opt/jopdf", "opt/jopdf/*")
pisitools.insinto("/usr/share/applications", "usr/share/applications/jopdf.desktop")
pisitools.insinto("/usr/share/icons", "usr/share/icons/hicolor")
shelltools.system("chmod +x %s/opt/jopdf/JOPDF" % get.installDIR())
shelltools.system("find %s/opt/jopdf/lib -name '*.so*' -exec chmod +x {} +" % get.installDIR())
shelltools.system("sed -i 's|/opt/jopdf/JOPDF|jopdf|g' %s/usr/share/applications/jopdf.desktop" % get.installDIR())
pisitools.dosym("/opt/jopdf/JOPDF", "/usr/bin/jopdf")