Build a LinHES Package

Version 4 (brfransen, 02/19/2012 12:03 pm) → Version 5/6 (brfransen, 02/19/2012 12:03 pm)

h1. Build a LinHES Package

h2. Setup

* Get the required development tools (gcc, make, fakeroot etc.):
<pre>
pacman -Sy base-devel
</pre>

* Get the source packages using one of the following:
# Use your development enviroment and follow the "readme.":http://linhes.org/cgit/cgit.cgi/linhes_dev/plain/README
# Don't use your development environment and only use git to pull linhes_pkgbuild
# Visit http://linhes.org/repo/src_packages/
# Visit http://cgit.linhes.org/linhes_pkgbuild/tree/abs
http://linhes.org/cgit/cgit.cgi/linhes_pkgbuild/tree/abs
Currently "ABS":http://wiki.archlinux.org/index.php/Arch_Build_System is not setup for LinHES.

h2. Example

* For example, using option 3, you can browse to find the package (lirc in this example) that you want and download and extract it and build it using:
<pre>
wget http://linhes.org/repo/src_packages/core-testing/lirc-0.8.3-3.src.tar.gz
tar xvfz lirc-0.8.3-3.src.tar.gz
cd lirc
makepkg
</pre>

* This will build a binary package that you can then install using:
<pre>
pacman -U lirc-0.8.3-3.pkg.tar.gz
</pre>

* Make changes to the package and then build and install it. Once you are satisfied with the package, you can submit the changes via the "LinHES Bug Tracker.":http://linhes.org/bugs/projects/linhes

h2. Tips

* To find out what package a given file belongs to, you can use the command:
<pre>
pacman -Qo /path/to/the/file
</pre>