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 Sat 25 May 2013, 07:46
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Compiling
Buildpet 0.4
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [4 Posts]  
Author Message
Tman


Joined: 22 Jan 2011
Posts: 732
Location: Toronto

PostPosted: Sat 22 Sep 2012, 16:31    Post subject:  Buildpet 0.4
Subject description: compile apps with a few short commands
 

Hello,

When I first started compiling apps, I felt a sense of great satisfaction of being able to be able make pets from source files. But after some time, I realized that, with so many sources out there, it would be much, much more efficient to have some sort of automated build scripts do it all for you. Once you have created a build-script, then it should do everything for you, from downloading the source, configuring it, and converting into a pet.

So I started creating my own build-scripts which did the job, but then I discovered Iguleder's buildpkg system, which allowed for much smaller build-scripts, and also created smaller pets than my own system.

When I first tried it out, I was amazed, and delighted! Laughing Iguleder had done some fantastic work on this, and I could tell that he spent a lot of time creating the scripts. So the bulk of this project was already completed, thanks to Iguleder.

I took the buildpkg script and have adapted it so that it will create a suffix at the end of the pets. Also I have added a few bug fixes and some extra features. Newer scripts will have extra info sent to the /tmp/buildpet_info folder.

I also plan to add a grahical interface to this system, later on. After all this is complete, then I will periodically create and add build scripts to the repository.

I hope to end up with a large collection of build scripts so that eventually, a novice user will be able to load up any version of Puppy and be able to create pets from source files with a few clicks of the mouse .

Currently however, there is no GUI in place but using it from the terminal is not so difficult:

1) First you will need to install buildpet
2) load the devx sfs file. For drivers, the kernel-sources sfs must also be loaded
3) Open up a terminal emulator or exit to the console.
Example to build leafpad:
Code:
buildpet /usr/share/buildpet/document/leafpad.bp

or
Code:
cd /usr/share/buildpet/document
buildpet leafpad.bp


Done! That's it. The pets will end up in /root/my-pets. The only downside to this, is that for big apps, you will need a large savefile, since the sources will be extracted to the /root/my-pets folder. I may alter this in the future, but for now I just wanted to get it working right.
The only thing that the scripts will not do, is check for needed dependencies; But if a build fails to compile, there should be error messages that will tell you what dependencies are missing.

Download links are below.

Compilers
If you wish, you can post your configure options for apps that I haven't made scripts for. I can then test them, create new build-scripts and upload them to a repository.
buildpet-sep-22-2012.tar.gz
Description  tarball of build-scripts collection
gz

 Download 
Filename  buildpet-sep-22-2012.tar.gz 
Filesize  55.42 KB 
Downloaded  173 Time(s) 
buildpet_nogui-0.4.pet
Description  base files with sample scripts
pet

 Download 
Filename  buildpet_nogui-0.4.pet 
Filesize  5.75 KB 
Downloaded  160 Time(s) 
Back to top
View user's profile Send private message 
pemasu


Joined: 08 Jul 2009
Posts: 5170
Location: Finland

PostPosted: Sat 22 Sep 2012, 17:09    Post subject:  

Works. Thanks ! Very Happy
Back to top
View user's profile Send private message 
oldyeller


Joined: 15 Nov 2011
Posts: 471
Location: Mishawaka IN

PostPosted: Mon 24 Sep 2012, 13:29    Post subject:  

Hello Tman,
when I try and do tint2 or wbar I get permission denied.

Is there something else I need to do?


EDIT I saw what I did not do Laughing Laughing Laughing Laughing

I should have looked closer at the example you gave above.

This works really nice Thank you so much for this

Cheers
Back to top
View user's profile Send private message 
sc0ttman


Joined: 16 Sep 2009
Posts: 2174
Location: UK

PostPosted: Fri 22 Mar 2013, 06:20    Post subject:  

I have been making updates to buildpet, including

- auto tar up the source dir of svn/git downloads, then remove the source dir when not needed
- allow to change package versions in the build script (can now download 'pkg-latest.tar.gz', which might unpack the dir 'pkg-0.x.x' - now it will still work fine, with the right stuff in the build script [see jwm build script])
-added ability to auto-integrate with Pkg (my cli pkg manager) if its installed
- updated info in pop up message when installed
- more verbose error reporting
- added build scripts for: jwm (always builds latest version), easytag, audacious, xcb_proto, xcb_util, pekwm, freeciv , others ...
- fixed some buildscripts (xpad, others), needed `wget --no-check-certificate`

to see all build scripts available to compile, type the following in the terminal:
Code:
find /usr/share/buildpet


A very small note for Akita users: cos of this,
Code:
pkg --compile-pkg jwm
pkg --install jwm
etc
will be all you need to compile and install stuff from source in the next Akita Smile
buildpet_nogui-0.5.pet
Description 
pet

 Download 
Filename  buildpet_nogui-0.5.pet 
Filesize  63.97 KB 
Downloaded  46 Time(s) 

_________________
Akita Linux, VLC-GTK, Pup Search, Pup File Search
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [4 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Compiling
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.0491s ][ Queries: 13 (0.0050s) ][ GZIP on ]