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