Build a LinHES Package

Version 3 (brfransen, 02/19/2012 12:03 pm)

1 1
h1. Build a LinHES Package
2 1
3 1
h2. Setup
4 1
5 1
* Get the required development tools (gcc, make, fakeroot etc.):
6 1
<pre>
7 1
pacman -Sy base-devel
8 1
</pre>
9 1
10 1
* Get the source packages using one of the following:
11 3 brfransen
# Use your development enviroment and follow the "readme.":http://linhes.org/cgit/cgit.cgi/linhes_dev/plain/README
12 3 brfransen
# Don't use your development environment and only use git to pull linhes_pkgbuild
13 1
# Visit http://linhes.org/repo/src_packages/
14 3 brfransen
# Visit http://linhes.org/cgit/cgit.cgi/linhes_pkgbuild/tree/abs 
15 1
Currently "ABS":http://wiki.archlinux.org/index.php/Arch_Build_System is not setup for LinHES.
16 1
17 1
h2. Example
18 1
19 1
* 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:
20 1
<pre>
21 1
wget http://linhes.org/repo/src_packages/core-testing/lirc-0.8.3-3.src.tar.gz 
22 1
tar xvfz lirc-0.8.3-3.src.tar.gz 
23 1
cd lirc 
24 1
makepkg
25 1
</pre>
26 1
27 1
* This will build a binary package that you can then install using: 
28 1
<pre>
29 1
pacman -U lirc-0.8.3-3.pkg.tar.gz
30 1
</pre>
31 1
32 1
* 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
33 1
34 1
h2. Tips
35 1
36 1
* To find out what package a given file belongs to, you can use the command:
37 1
<pre>
38 1
pacman -Qo /path/to/the/file
39 1
</pre>