wok-current view dillo-hg/receipt @ rev 2848
Typo in libQtClucene
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri May 01 15:42:52 2009 +0200 (2009-05-01) |
parents | fa76f0f82bbc |
children | 9eb980078957 |
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 # Webhome
51 cp -a stuff/webhome $fs/usr/share
52 chown -R root.root $fs
53 }
55 pre_install()
56 {
57 if [ -d $1/var/lib/tazpkg/installed/$CONFLICTS ]; then
58 echo "y" | tazpkg remove $CONFLICTS
59 fi
60 }