Creating an Alpine package: Difference between revisions
(New page: DRAFT This document assumes that you have a working build environment, or use a diskbased alpine installation. === The APKBIULDs === The ''[http://dev.alpinelinux.org/cgit/cgit.cgi/abuil...) |
(Doc structure) |
||
Line 3: | Line 3: | ||
This document assumes that you have a working build environment, or use a diskbased alpine installation. | This document assumes that you have a working build environment, or use a diskbased alpine installation. | ||
=== The | === The APKBUILDs === | ||
The ''[http://dev.alpinelinux.org/cgit/cgit.cgi/abuild abuild]'' script reads the ''[http://dev.alpinelinux.org/cgit/cgit.cgi/abuild//tree/APKBUILD.proto APKBUILD]'' and executes the steps needed to create a package. | The ''[http://dev.alpinelinux.org/cgit/cgit.cgi/abuild abuild]'' script reads the ''[http://dev.alpinelinux.org/cgit/cgit.cgi/abuild//tree/APKBUILD.proto APKBUILD]'' and executes the steps needed to create a package. | ||
Line 11: | Line 11: | ||
== Installing and configuring the alpine-sdk == | == Installing and configuring the alpine-sdk == | ||
The alpine-sdk is a metapackage that pulls in the most essinsial packages used to build new packages. To install those packages: | The alpine-sdk is a metapackage that pulls in the most essinsial packages used to build new packages. To install those packages: | ||
apk add alpine-sdk | |||
The aports tree is in git so before we can clone the aports tree we need to install and configure git. We need to tell git our name and email. | The aports tree is in git so before we can clone the aports tree we need to install and configure git. We need to tell git our name and email. | ||
git config --global user.name "Your Full Name" | |||
git config --global user.email "your@email.address" | |||
Now we can clone the aports tree. | Now we can clone the aports tree. | ||
git clone git://dev.alpinelinux.org/aports | |||
== Creating an APKBUILD file == | |||
== Build the package == | |||
== Splitting packages == | |||
== Commit your work == |
Revision as of 10:11, 20 January 2009
DRAFT
This document assumes that you have a working build environment, or use a diskbased alpine installation.
The APKBUILDs
The abuild script reads the APKBUILD and executes the steps needed to create a package.
The aports tree
The aports tree is a directory tree with many APKBUILDs. Those files are used when building alpine from source.
Installing and configuring the alpine-sdk
The alpine-sdk is a metapackage that pulls in the most essinsial packages used to build new packages. To install those packages:
apk add alpine-sdk
The aports tree is in git so before we can clone the aports tree we need to install and configure git. We need to tell git our name and email.
git config --global user.name "Your Full Name" git config --global user.email "your@email.address"
Now we can clone the aports tree.
git clone git://dev.alpinelinux.org/aports