Basically in debian/control I have:
------------------------
Source: ara
Section: utils
Priority: optional
Maintainer: George Danchev <danchev@spnet.net>
Build-Depends: debhelper (>= 4.0.0), ocaml-3.08, liblablgl-ocaml-dev,
liblablgtk2-ocaml-dev, ocaml-base, ocaml-base-nox, ocaml-interp,
ocaml-native-compilers, ocaml-nox
Standards-Version: 3.6.1
Package: ara
Architecture: alpha amd64 arm hppa i386 ia64 powerpc sparc
Depends: ${shlibs:Depends}, ocaml-base-3.08
Conflicts: ara-byte
Replaces: ara-byte
Description: A CLI utility for queries on the Debian package database
ara is a utility for doing boolean regexp queries on the Debian
package database.
.
The database lives, by default, as a text file under the path
/var/lib/dpkg/available on your Debian installation. It lists all
packages, installed or not, that are known to your Debian package
management system.
.
ara can perform sophisticated queries on that database. It is possible
to use any field of the package database as a search criterion and any
boolean combination thereof.
.
This is the CLI version.
Package: ara-byte
Architecture: all
Depends: ${shlibs:Depends}, ocaml-base-3.08
Provides: ara
Conflicts: ara
Replaces: ara
Description: A CLI utility for queries on the Debian package database
ara is a utility for doing boolean regexp queries on the Debian
package database.
.
The database lives, by default, as a text file under the path
/var/lib/dpkg/available on your Debian installation. It lists all
packages, installed or not, that are known to your Debian package
management system.
.
ara can perform sophisticated queries on that database. It is possible
to use any field of the package database as a search criterion and any
boolean combination thereof.
.
This is the CLI version.
Package: xara-gtk
Architecture: alpha amd64 arm hppa i386 ia64 powerpc sparc
Depends: ${shlibs:Depends}, libatk1.0-0 (>= 1.6.0), libc6 (>= 2.3.2.ds1-4),
libglib2.0-0 (>= 2.4.6), libgtk2.0-0 (>= 2.4.4), libncurses5 (>= 5.4-1),
libpango1.0-0 (>= 1.4.1), libpcre3 (>= 4.5), libexpat1, libfontconfig1,
libfreetype6, libx11-6, libxcursor1, libxext6, libxft2, libxi6, libxrandr2,
libxrender1, zlib1g
Conflicts: xara-gtk-byte
Relpaces: xara-gtk-byte
Description: A GTK GUI utility for queries on the Debian package database
ara is a utility for doing boolean regexp queries on the Debian
package database.
.
The database lives, by default, as a text file under the path
/var/lib/dpkg/available on your Debian installation. It lists all
packages, installed or not, that are known to your Debian package
management system.
.
ara can perform sophisticated queries on that database. It is possible
to use any field of the package database as a search criterion and any
boolean combination thereof.
.
This is the GTK2 GUI version.
Package: xara-gtk-byte
Architecture: all
Depends: ${shlibs:Depends}, libatk1.0-0 (>= 1.6.0), libc6 (>= 2.3.2.ds1-4),
libglib2.0-0 (>= 2.4.6), libgtk2.0-0 (>= 2.4.4), libncurses5 (>= 5.4-1),
libpango1.0-0 (>= 1.4.1), libpcre3 (>= 4.5), libexpat1, libfontconfig1,
libfreetype6, libx11-6, libxcursor1, libxext6, libxft2, libxi6, libxrandr2,
libxrender1, zlib1g
Provides: xara-gtk
Conflicts: xara-gtk
Replaces: xara-gtk
Description: A GTK GUI utility for queries on the Debian package database
ara is a utility for doing boolean regexp queries on the Debian
package database.
.
The database lives, by default, as a text file under the path
/var/lib/dpkg/available on your Debian installation. It lists all
packages, installed or not, that are known to your Debian package
management system.
.
ara can perform sophisticated queries on that database. It is possible
to use any field of the package database as a search criterion and any
boolean combination thereof.
.
This is the GTK2 GUI version.
-----------------------
AFAIK, I can test whither to build native or bytecode this way:
from debian/rules:
-------
$(MAKE) bt
if [ -x /usr/bin/ocamlopt ]; then \
$(MAKE); \
fi
-------
Attached is a patch against the current code from svn. Please apply, although
the install target remains to be fixed. I hope someone to fix it soon at full
length, because I wont have the spare time to work on till friday morning.