Welcome, Guest. Please login or register.
April 16, 2014, 06:22:27 AM
Home Help Search Calendar Login Register
Show unread posts since last visit.
News: Let Pardus-Anka become #1: Pardus-Anka Bug ReportPardus-Anka World Google+ | The Pardus wiki  | Visit Pardus-Anka official website  | Register as forum member?  Email the moderator!

+  Pardus Worldforum
|-+  General
| |-+  Tips and tricks
| | |-+  Instruction for building Pisi-packages
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Instruction for building Pisi-packages  (Read 3204 times)
bubbel
Guest
« on: August 14, 2009, 12:52:20 PM »

Hello together,

here one instruction for building a pisi-package for example Opera Unite, which wrote me the kindly developer "Serdar":  Wink

Code:
First, make sure that you have system.devel component installed.

change to a root user by su -
then
write
pisi it -c system.devel

after this, install subversion
pisi it subversion.

subversion is needed to checkout the source codes.

so let's begin :)

first, checkout https://svn.pardus.org.tr/pardus/playground/sdalgic/network/web/opera-unite/

svn co https://svn.pardus.org.tr/pardus/playground/sdalgic/network/web/

here, you will see that kind of structure:

sdalgic@Virt-2009-Deus-Ex-Machina web $ ls -R
.:
component.xml  opera-unite

./opera-unite:
actions.py  files  pspec.xml  translations.xml

./opera-unite/files:
opera.desktop
************************************************
component.xml file at the upper directory of opera-unite package is essential to build the package.

Most of the packages are kept in that kind of repository structure. So keep in mind, in order to build a package with source repository, component.xml file in one level upper of the package directory is essential.

After you got the source package, investigate the files

there are

    * actions.py : The instructions for building the package
    * pspec.xml: Package specifications
    * translations.xml : Package Summary and Description translations.
    * files/ directory: Additional files, patches etc.
    * comar/ directory: not present in this packages, but includes post-install scripts, pre-removal scripts etc..

For building a package, we use pisi build command. type pisi help bi for more information.

pisi bi -d pspec.xml
is the command you will write in the command line. -d option is for debugging purposes, it will be on by default in the next version of pisi ;)

After this, pisi package is being built. Just watch pisi build the package ;)

After the process has ended, you will see the package in your working directory. It will be opera-unite-10.00-1.pisi .

That's all. Pardus svn is here[1] . check out the repository and you can try building packages.

Take a look at pspec.xml file. It is easy to read, and you will get a clue about the package. The maintainer of the package, the source of the source package (Main source code of the program) The package's dependencies, the packages it conflicts, The file paths of the package.

btw, you can see the contents of the package by writing lspisi <package_name.pisi>
for ex:
sdalgic@Virt-2009-Deus-Ex-Machina opera-unite $ lspisi opera-unite-10.00-1.pisi
/usr/bin/opera                                                                    
/usr/lib/opera/10.00/missingsyms.so                                                
/usr/lib/opera/10.00/opera                                                        
/usr/lib/opera/10.00/operaplugincleaner                                            
/usr/lib/opera/10.00/operapluginwrapper                                            
/usr/lib/opera/10.00/spellcheck.so                                                
/usr/lib/opera/10.00/works                                                        
/usr/lib/opera/plugins/libflashplayer.so                                          
/usr/share/applications/opera.desktop                                              
/usr/share/doc/opera/LGPL                                                          
/usr/share/doc/opera/LICENSE                                                      
/usr/share/icons/hicolor/16x16/apps/opera.png    

These are the paths the contents of the package will go to.

Greetings
bubbel
Logged
Andreas
Guest
« Reply #1 on: January 20, 2010, 12:19:28 PM »

Hello together,

the Adim LinuxFanatic from pardususer.de has published a book with over 210 pages on the construction of PISI packages.

You find it here

Great work of LinuxFanatic  Wink Smiley

Greetings
Andreas
Logged
atolboo
Pardus Guru
****
Posts: 2317



View Profile
« Reply #2 on: January 20, 2010, 13:47:58 PM »

Great work of LinuxFanatic  Wink Smiley
Logged
Ganesh
Pardus fellow craft
**
Gender: Male
Posts: 79



View Profile
« Reply #3 on: November 23, 2010, 17:44:24 PM »

Hi,

I tried downloading from the given link. but it referred to dead link.

could you be king enough to give me a direct link.

Ganesh
Logged

Speak Your Truth and Clearly; and listen to others, even the dull and ignorant; they too have their story. ('Cheesy')
atolboo
Pardus Guru
****
Posts: 2317



View Profile
« Reply #4 on: November 23, 2010, 20:49:14 PM »

....... but it referred to dead link.
Have a look in this Post and I am  
And feel free to react in the English language over there. Wink
« Last Edit: February 03, 2011, 13:23:07 PM by atolboo » Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!