wok annotate dillo-hg/receipt @ rev 2836

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