Preparation :
To create a devpack you need the files that you want, a text editor (for example vi or notepad) and a tool for create a tar.bz2 archive (tar, bzip2, 7-zip).
  1. Create a directory
  2. Put all the files that you want in this directory
  3. Create a file with the suffix .DevPackage in the previous directory
  4. Edit this file

The DevPackage File :

The DevPackage File should have 3 main sections :
  • [Setup] : informations for the package manager
  • [Files] : where copy the files
  • [Icons] : shortcuts created in the startup menu

The [Setup] section :
Version
version of the package
AppName Name of the application
AppVersion Version of the application
AppVerName App real name
MenuNam Name of the menu inside the start up menu
Description Description
Url Application website's Url
License name of the license file text inside the directory
Readme name of the readme file text inside the directory
Dependencies names of the dependencies
   


The [Files] section
Put the original name and the destination name. The directory will be recursively copied.
You can use two useful keyword : <system> the system directory and <app> the dev-c++ directory.

The [Icons] section
Just choose the wanted shortcuts.

Try it !
double click on the DevPackage file the package would be installed.

Compression
Compress the directory first as a tar file the as a tar.bz2 file. Change the extension tar.bz2 to .
DevPak


WxWindows.DevPackage

[Setup]
Version=2
AppName=WxWindows Development Kit
AppVersion=2.4.0
AppVerName=WxWindows Development Kit 2.4.0 for gcc 3.2
MenuName=WxWindows
Description=A cross-platform C++ GUI toolkit.                Build by Michel Weinachter (michel.weinachter@free.fr).
Url=http://www.wxwindows.org/
License=License.txt
Readme=Readme.txt
Dependencies=imagelib

[Files]
include=<app>\include\
lib=<app>\lib\
Templates=<app>\Templates\
docs=<app>\docs\
bin=<app>\bin\

[Icons]
Website=http://www.wxwindows.org/
Documentation=http://www.wxwindows.org/support.htm
Dialog editor=<app>\bin\dialoged.exe
Tex2rtf=<app>\bin\tex2rtf.exe
Widget examples=<app>\bin\widgets.exe
Life Game=<app>\bin\life.exe