# autopkg rules for galeon
# http://galeon.sourceforge.net/
# This script is a companion to mozilla.apkg distributed with autopkg.
# Some of the options passed to configure depend on the locations of
# files specified in mozilla.apkg.
sub build {
my $prefix = getconfig(qw(prefix /usr/X11R6 gnome-config gtk-config));
my $sysconfdir = getconfig(qw(sysconfdir /etc gnome-config));
docfiles(qw(AUTHORS COPYING COPYING.README ChangeLog FAQ
FAQ.html INSTALL NEWS README README.ExtraPrefs THANKS TODO));
# Note the mozilla-libs and mozilla-includes specified here.
# This script expects that you have installed the mozilla package
# built via autopkg and mozilla.apkg.
shellcmd("$def_cc ./configure --prefix=$prefix --sysconfdir=$sysconfdir --enable-nautilus-view=no",
'configure');
apply_patches();
shellcmd("make $opt_jobs", 'make');
if (my $gconftool = `which gconftool`) {
chomp $gconftool;
shellcmd("$gconftool --shutdown", 'shutdown gconftool');
}
mkdirs("$sysconfdir/gconf/gconf.xml.defaults");
shellcmd("make install GCONF_SCHEMA_CONFIG_SOURCE=xml::$PKGDIR$sysconfdir/gconf/gconf.xml.defaults DESTDIR=$PKGDIR", 'make install');
}
syntax highlighted by Code2HTML, v. 0.9.1