A short overview on how to create PiSi packages

PiSi is the package system of Pisi Linux and stands for “Packages installed successfully as intended“.

The Package Manager is the frontend for PiSi and is not offering all the functions that PiSi has.

Also the package specification should be seperated from the instructions for installation.

Package System PiSi is written in Python.The created software package is heavily compressed

and uses the suffix “.pisi“. All packages in PiSi format can be installed either by terminal or by

right-click > “Open with Package Manager“ – provided the package fits the right Pisi Linux version.

Note: at the moment is in the Pisi Linux 2.0-Alpha 7-New Cat no Package-Manager available 

When you create a new package with the command :

sudo pisi build pspec.xml

PiSi will create a directory /work and /install in

/var/pisi/package-name.

In the “/work“ directory all the compiling will be done, and after that, all installation files will be in /install.

After that, all files of the “install“ directory will be included and compressed into the pisi package.

 

A short overview on how to create PiSi packages :

1

download compressed source file (save download link for pspec) *1+

2

create sha1sum (for pspec) with the command : sha1sum name_of_sourcefile.tar.gz *2+

3

unzip Sourcefile

4

study INSTALL and README

5

check dependencies according to INSTALL & README

6

check also other information sites about the program (e.g.) information about rpm:

http://rpm.pbone.net/ or http://www.rpmseek.com/ or http://www.rpmfind.net/

Also pckbuild-file for Arch-Linux could be a good reference

7

check if dependencies are available in Pardus

8

check if package name differs from the one that the ./configure routine may expect

9

install the package by using the source file (then you see if manual installation is working)

10

create pspec.xml / actions.py and other files for PiSi

11

create package by running : sudo pisi build pspec.xml

A lot of OpenSource projects are hosted by SourceForge. SourceForge is using several mirrors and the

actual fastest is picked for a download. To use that advantage

*1+You can use the mirror-address instead

of the „real“ download address. Then archive will be downloaded from mirror specified in /etc/pisi/mirrors.conf

real address: http://dfn.dl.sourceforge.net/project/freefilesync/freefilesync/v4.1/FreeFileSync_Sourcecode_v4.1.zip

mirror address: mirrors://sourceforge/freefilesync/FreeFileSync_Sourcecode_v4.1.zip

*2+After installing of „pisi-dev-tools“ package (available in the Pisi Linux repo)

 

Advertisements