Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sun 20 Apr 2014, 10:29
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
Create a .txz package
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [1 Post]  
Author Message
Jejy69

Joined: 20 Jan 2011
Posts: 694
Location: [Break]

PostPosted: Tue 23 Jul 2013, 16:24    Post subject:  Create a .txz package
Subject description: Lxpup / Salix / Slackware
 

Hello,

Today we are how going to learn to create a package under the Slackware system and its derivatives. Here, I will take gimp for the example.
These packages have some advantages with regard to the Puppy's .pet build.

1- Why .txz ?
-They have a better compression, thanks to the xz tool.
-A strict name corresponding to the following plan :
Code:
*[name]-[version]-[arch]-[build number / Personal marking].txz

Example :
Code:
*gimp-2.8.6-i686-1indy.txz

-You can remove symlink in the package.
-They contain a text file "slack-desc" in /install, it's a description of the package.

2- Compile your package

Configure and compile the source of gimp as you usually do.
Personally, at the end of the compilation, I do a "make install DESTDIR=/dev/shm/gimp" to install gimp's file in a specific folder.
Adapt this tuto for your own habits.

3- Create slack-desc file for your package

Code:
cd /dev/shm/gimp
mkdir install
cd install


Using a text editor, create a file ( blank file ) called "slack-desc" ( in /install directory of your package ) and fill it with the following contents ( common package ) :

Code:
   |-----handy-ruler------------------------------------------------------|
app: Application Name (Short/Brief description)
app:
app: Enter a description of the package you are building.
app: All 11 "app:" lines must be present
app: "app" needs to be your application name.
app: The handy-ruler is there to help you, these lines should not exceed
app: 79 characters.
app:
app:
app:
app:


For us, since it's Gimp we can write :

Code:
gimp: gimp (The GNU Image Manipulation Program)
gimp:
gimp: The GIMP is a powerful tool for the preparation and manipulation of
gimp: digital images.  The GIMP provides the user with a wide variety of
gimp: image manipulation, painting, processing, and rendering tools.  The
gimp: GIMP's open design and extensible architecture make for a very
gimp: powerful end product for photo and image retouching, web graphics
gimp: design, or digital illustration.
gimp:
gimp:
gimp:


When it's done, create your package.

4- And create...

Code:
cd /dev/shm/gimp
makepkg ../gimp-2.8.6-i686-1indy.txz


When prompted to recreate symbolic links, say yes.
When prompted to reset permissions, say no.
You package'll be created in the parent folder.

It's done your Slackware package exists !
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [1 Post]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0421s ][ Queries: 12 (0.0061s) ][ GZIP on ]