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 Mon 14 Oct 2019, 16:37
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

Joined: 20 Jan 2011
Posts: 710
Location: Perpignan

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


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 :
*[name]-[version]-[arch]-[build number / Personal marking].txz

Example :

-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

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 ) :

app: Application Name (Short/Brief description)
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.

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

gimp: gimp (The GNU Image Manipulation Program)
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.

When it's done, create your package.

4- And create...

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 !

I'm Commander Shepard and this is my favorite Linux distrbution on the Citadel.
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.0371s ][ Queries: 12 (0.0114s) ][ GZIP on ]