1234567891011121314151617181920212223242526272829303132 |
- #!/usr/bin/python
- # -*- coding: utf-8 -*-
- #
- # Licensed under the GNU General Public License, version 3.
- # See the file https://www.gnu.org/licenses/gpl-3.0.txt
- from pisi.actionsapi import get
- from pisi.actionsapi import pisitools
- from pisi.actionsapi import shelltools
- from pisi.actionsapi import pythonmodules
- def build():
- pythonmodules.compile()
- def install():
- pythonmodules.install("--install-lib=/usr/lib/pisilinux")
- pisitools.dosym("pisi-cli", "/usr/bin/pisi")
- shelltools.touch("LOCK")
- shelltools.chmod("LOCK", 0o666)
- pisitools.dodir("/run/lock/files.ldb")
- pisitools.insinto("/run/lock/files.ldb", "LOCK")
- pisitools.dodir("/var/lib/pisi/info/files.ldb")
- pisitools.dosym("/run/lock/files.ldb/LOCK", "/var/lib/pisi/info/files.ldb/LOCK")
- # we need it temporary
- pisitools.dodir("/usr/lib/pardus")
- pisitools.dosym("/usr/lib/pisilinux/pisi", "/usr/lib/pardus/pisi")
|