Aports tree: Difference between revisions

From Alpine Linux
(Some notes on APKBUILD)
 
(Clenaning up again)
Line 1: Line 1:
= Description of APKBUILD =
= Description of the aports tree =
== Introduction ==
== Introduction ==
APKBUILD is a file containing instructions on how something should be built/compiled.<BR>
The [http://dev.alpinelinux.org/cgit/aports/ aports] tree is a [http://dev.alpinelinux.org/cgit/aports/tree/ directory tree] with many APKBUILD's.<BR>
''[http://dev.alpinelinux.org/cgit/abuild/tree/sample.APKBUILD APKBUILD]'' is a file containing "recepies" on how something should be built/compiled.<BR>
These files are used when building alpine from source.<BR>
These files are used when building alpine from source.<BR>
In your build environment you would have at least one APKBUILD for each package/program.
In your build environment you would have at least one ''[http://dev.alpinelinux.org/cgit/abuild/tree/sample.APKBUILD APKBUILD]'' for each package/program.


When alpine is compiled, you will no longer see (or have use of) the APKBUILD. The APKBUILD is not included in the 'iso' or 'tar.gz'.
When alpine is compiled, you will no longer see (or have use of) the ''[http://dev.alpinelinux.org/cgit/abuild/tree/sample.APKBUILD APKBUILD]''. It is not included in the 'iso' or 'tar.gz'.


The ''[http://dev.alpinelinux.org/cgit/abuild/tree/abuild abuild]'' script reads the ''[http://dev.alpinelinux.org/cgit/abuild/tree/sample.APKBUILD APKBUILD]'' and executes the steps needed to create a package.
The ''[http://dev.alpinelinux.org/cgit/abuild/tree/abuild abuild]'' script reads the ''[http://dev.alpinelinux.org/cgit/abuild/tree/sample.APKBUILD APKBUILD]'' and executes the steps needed to create a package.
== Location  ==
The [http://dev.alpinelinux.org/cgit/aports/ aports] tree is a [http://dev.alpinelinux.org/cgit/aports/tree/ directory tree] with many APKBUILDs.
If using the [[Setting_up_the_build_environment_1.9|1.9 build environment]] you should find your aports at
/usr/src/aports


== Fetch latest APKBUILD's ==  
== Fetch latest APKBUILD's ==  
While inside your [[Setting up the build environment 1.9|build environment]] you need to install some needed packages and you need to fetch the APKBUILD's from the server.<BR>'''''Note:''' You only need to do these 2 steps once! Next time you can skip this part.''
While inside your [[Setting up the build environment 1.9|build environment]] you need to install some needed packages and you need to fetch the APKBUILD's from the server (fetch the aports tree).<BR>
'''''Note:''' You only need to do these 2 steps once! Next time you can skip this part.''
  apk add alpine-sdk
  apk add alpine-sdk
  git clone git://dev.alpinelinux.org/aports /usr/src/
cd ~
  git clone git://dev.alpinelinux.org/aports
When the above is done you might be interested in fetching the latest updates.
When the above is done you might be interested in fetching the latest updates.
  cd /usr/src/
  cd ~
  git pull
  git pull



Revision as of 11:05, 10 March 2009

Description of the aports tree

Introduction

The aports tree is a directory tree with many APKBUILD's.
APKBUILD is a file containing "recepies" on how something should be built/compiled.
These files are used when building alpine from source.
In your build environment you would have at least one APKBUILD for each package/program.

When alpine is compiled, you will no longer see (or have use of) the APKBUILD. It is not included in the 'iso' or 'tar.gz'.

The abuild script reads the APKBUILD and executes the steps needed to create a package.

Fetch latest APKBUILD's

While inside your build environment you need to install some needed packages and you need to fetch the APKBUILD's from the server (fetch the aports tree).
Note: You only need to do these 2 steps once! Next time you can skip this part.

apk add alpine-sdk
cd ~
git clone git://dev.alpinelinux.org/aports

When the above is done you might be interested in fetching the latest updates.

cd ~
git pull

Create a APKBUILD

Your are encouraged to contribute with APKBUILD's the you have made.
Please look at 'Creating_an_Alpine_package' that describes how you make your own APKBUILD's.