wok-next view dillo-hg/receipt @ rev 2820
Add Dillo (Hg version) - Provide CSS support!
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Apr 29 21:18:16 2009 +0200 (2009-04-29) |
parents | |
children | 23c5897a0eb4 |
line source
1 # SliTaz package receipt.
3 PACKAGE="dillo-hg"
4 VERSION="1058"
5 CATEGORY="network"
6 SHORT_DESC="Light and fast web browse using FLTK (Hg version)."
7 MAINTAINER="pankso@slitaz.org"
8 WEB_SITE="http://www.dillo.org/"
9 DEPENDS="fltk-2.0.x libpng jpeg zlib"
10 BUILD_DEPENDS="$DEPENDS fltk-2.0.x-dev libpng-dev jpeg-dev zlib-dev \
11 python mercurial"
12 CONFLICTS="dillo"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 [ -d "$PACKAGE-$VERSION" ] && rm -rf $PACKAGE-$VERSION
18 echo "Cloning revision $VERSIN from Dillo repository..."
19 hg clone --rev $VERSION \
20 http://hg.dillo.org/dillo $PACKAGE-$VERSION || exit 0
21 cd $src
22 ./autogen.sh &&
23 ./configure \
24 --sysconfdir=/etc/dillo \
25 --prefix=/usr \
26 $CONFIGURE_ARGS &&
27 make &&
28 make DESTDIR=$PWD/_pkg install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/lib \
35 $fs/usr/share/webhome \
36 $fs/usr/share/applications \
37 $fs/usr/share/pixmaps
38 cp -a $_pkg/usr/bin $fs/usr
39 cp -a $_pkg/usr/lib/dillo $fs/usr/lib
40 strip -s $fs/usr/lib/dillo/dpi/*/*
41 chmod +x $fs/usr/bin/*
42 # Config files with custom dillorc and webhome page.
43 cp -a $_pkg/etc $fs
44 cp stuff/dillorc $fs/etc/dillo
45 cp stuff/dillo-index.html $fs/usr/share/webhome
46 cp stuff/dillo.css $fs/usr/share/webhome
47 cp -a stuff/pics $fs/usr/share/webhome
48 cp -a stuff/dillo.desktop $fs/usr/share/applications
49 cp -a stuff/dillo.png $fs/usr/share/pixmaps
50 chown -R root.root $fs
51 }
53 pre_install()
54 {
55 if [ -d $1/var/lib/tazpkg/installed/$CONFLICTS ]; then
56 echo "y" | tazpkg remove $CONFLICTS
57 fi
58 }