2. Create a package

create the following structure:

# ls -l
total 24
-rw-r--r-- 1 root root  186 Sep  6  2009 Buildfile
drwxr-xr-x 2 root root 4096 Sep  6  2009 binaries
drwxr-xr-x 2 root root 4096 Sep  6  2009 build
drwxr-xr-x 2 root root 4096 Sep  6  2009 infos
drwxr-xr-x 2 root root 4096 Sep  6  2009 patchs
drwxr-xr-x 2 root root 4096 Sep  6  2009 procedures

binaries is the directory where the compiled programs will stay and build is where the programs will be built with Buildfile:

f_build ()
{
  $SOURCES_DIR/configure --prefix=/usr \
    && make && make DESTDIR=$INSTALL_DIR install
}

f_clean ()
{
  return 0
} 

In patch put the patches. In procedures create the following files:

Configure  Postinstall  Postremove  Preinstall  Preremove

for a future use. Meta datas for the package are in the directory infos:

Architecture  Category  Depends  Description  Maintainer  Version

And put the sources of the program in the directory sources. Then, build the program using build and create the package using:

wkpkg <package_name>

and create the binary package:

wkpkg -b <package_name>