Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 01-15-2006, 06:40 AM   #1
Amigo developer
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,856

Rep: Reputation: 547Reputation: 547Reputation: 547Reputation: 547Reputation: 547Reputation: 547
Easy Build script system

After an extensive rewrite and lot's of testing, I've released a new version of Amigo PkgBuild.

PkgBuild is a very easy way to compile and package software for yourself, or for distribution. It allows you to create a build script for source-code packages, usually in just a few seconds. All the repetitive commands are included in a FUNCTIONS file which is read by each build script. This keeps nearly all the working code out of sight.

For software which will successfully compile with just the configure and make commands, you only need to fill in 4 variables in the PkgBuild script. This means you can create a build script for most software in just a few seconds. It also means that folks who don't know how to write BASH scripts can create build scripts.

An advanced PkgBuild template allows for more flexibility for compiling software which requires extra config flags, or that needs special handling of documents or installation.

As configured by default, PkgBuild doesn't actually install the package on your system. And you can configure the directories where the source code gets unpacked and built, plus the dirs where the package gets built and where the final package gets placed.

The program script is pretty well commented. Documents and examples are included which will help you to get started.
Feedback is welcomed.

Last edited by gnashley; 01-15-2006 at 06:45 AM.
Old 01-16-2006, 04:40 AM   #2
Registered: Jun 2005
Posts: 111

Rep: Reputation: 15
FWIW, I use this for building my packages:

It is heavily inspired by pkgmk from Crux, but was rewritten from scratch. Just like pkgmk it can download source tarballs, very their checksums, and do a footprint check after building a package (to check whether the permissions are correct). A small collection of build scripts that use buildpkg can be found at:

Last edited by GlowGlow; 01-16-2006 at 04:42 AM.
Old 01-17-2006, 09:05 AM   #3
Amigo developer
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,856

Original Poster
Rep: Reputation: 547Reputation: 547Reputation: 547Reputation: 547Reputation: 547Reputation: 547
Here you'll find around 100 tarballs with PkgBuild scripts. These are all software which can be compiled with just GTK/GLIB-1.2.


Most of these are repackaged tarballs.
For many of them I have updated the configuration or Makefiles for successful compilation.
A few of them required minor changes to the source code for compiling
with GCC-3.3.4.
In tarballs where source code has been changed, or very major changes in config files have been made, you|ll find notes which indicate such changes.

Having a look at a few of the PkgBuild scripts will show you how easy it is to write one for nearly any source code package. For software which will compile with just ./configure, make, make install, all you have to give is the name, version and suffix of the tarball to write your script.

The whole script without commmets looks like this:

source /usr/share/Amigo/PkgBuild/FUNCTIONS ;
do_all_processes ;
exit 0

Or, for more complex control, you can use a step-by-step script which divides the package creation into several steps which you can customize or skip. Again, without comments, it looks like this:


pre_process ;
find_source ;
make_dirs ;
unpack_source ;
fix_source_perms ;
configure_source ;
compile_source ;
fake_install ;
fix_pkg_perms ;
strip_bins ;
create_docs ;
compress_man_pages ;
make_description ;
make_doinst ;
make_package ;
post_process ;
exit 0


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
vsftpd build script 0.o Slackware 4 06-06-2005 11:58 AM
easy script question citrus Linux - Newbie 7 03-23-2005 03:58 PM
Script to build Virtualusers lapthorn Linux - Software 0 10-19-2004 05:39 AM
Bash script!! need help!!!!!could be easy! yulitao Programming 3 03-25-2004 06:52 PM
Easy script question. TheRealDeal Linux - General 2 08-21-2003 11:51 PM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:39 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration