wok-next annotate dillo-hg/receipt @ rev 2895

Up: dillo (rev 1072) and fix receipt
author Christophe Lincoln <pankso@slitaz.org>
date Tue May 05 02:27:31 2009 +0200 (2009-05-05)
parents 23c5897a0eb4
children 881c396942a6
rev   line source
pankso@2820 1 # SliTaz package receipt.
pankso@2820 2
pankso@2820 3 PACKAGE="dillo-hg"
pankso@2895 4 VERSION="1071"
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@2895 12 SUGGESTED="openssl"
pankso@2820 13 CONFLICTS="dillo"
pankso@2820 14
pankso@2820 15 # Rules to configure and make the package.
pankso@2820 16 compile_rules()
pankso@2820 17 {
pankso@2820 18 [ -d "$PACKAGE-$VERSION" ] && rm -rf $PACKAGE-$VERSION
pankso@2820 19 echo "Cloning revision $VERSIN from Dillo repository..."
pankso@2820 20 hg clone --rev $VERSION \
pankso@2820 21 http://hg.dillo.org/dillo $PACKAGE-$VERSION || exit 0
pankso@2820 22 cd $src
pankso@2820 23 ./autogen.sh &&
pankso@2820 24 ./configure \
pankso@2820 25 --sysconfdir=/etc/dillo \
pankso@2820 26 --prefix=/usr \
pankso@2895 27 --enable-ssl \
pankso@2820 28 $CONFIGURE_ARGS &&
pankso@2820 29 make &&
pankso@2820 30 make DESTDIR=$PWD/_pkg install
pankso@2820 31 }
pankso@2820 32
pankso@2820 33 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@2820 34 genpkg_rules()
pankso@2820 35 {
pankso@2820 36 mkdir -p $fs/usr/lib \
pankso@2820 37 $fs/usr/share/applications \
pankso@2820 38 $fs/usr/share/pixmaps
pankso@2820 39 cp -a $_pkg/usr/bin $fs/usr
pankso@2820 40 cp -a $_pkg/usr/lib/dillo $fs/usr/lib
pankso@2820 41 strip -s $fs/usr/lib/dillo/dpi/*/*
pankso@2820 42 chmod +x $fs/usr/bin/*
pankso@2895 43 # Config files with custom dillorc and desktop file.
pankso@2820 44 cp -a $_pkg/etc $fs
pankso@2820 45 cp stuff/dillorc $fs/etc/dillo
pankso@2820 46 cp -a stuff/dillo.desktop $fs/usr/share/applications
pankso@2820 47 cp -a stuff/dillo.png $fs/usr/share/pixmaps
pankso@2836 48 # Webhome
pankso@2836 49 cp -a stuff/webhome $fs/usr/share
pankso@2820 50 chown -R root.root $fs
pankso@2820 51 }
pankso@2820 52
pankso@2820 53 pre_install()
pankso@2820 54 {
pankso@2820 55 if [ -d $1/var/lib/tazpkg/installed/$CONFLICTS ]; then
pankso@2820 56 echo "y" | tazpkg remove $CONFLICTS
pankso@2820 57 fi
pankso@2820 58 }