wok-6.x view dillo-hg/receipt @ rev 7935
tazbb and tazpkg-web: Fix and tiny improvement
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Jan 11 15:57:00 2011 +0100 (2011-01-11) |
parents | 6e90579538d6 |
children | 4420775b8cf6 |
line source
1 # SliTaz package receipt.
3 PACKAGE="dillo-hg"
4 VERSION="1326"
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 xorg-libXi xorg-libXinerama gcc-lib-base"
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 TARBALL=$SOURCES_REPOSITORY/$PACKAGE-$VERSION.tar.gz
20 if [ -f $TARBALL ]; then
21 tar xzf $TARBALL
22 else
23 echo "Cloning revision $VERSION from Dillo repository..."
24 hg clone --rev $VERSION \
25 http://hg.dillo.org/dillo $PACKAGE-$VERSION || exit 0
26 tar czf $TARBALL $PACKAGE-$VERSION
27 fi
28 cd $src
29 ./autogen.sh &&
30 ./configure \
31 --sysconfdir=/etc \
32 --prefix=/usr \
33 --enable-ssl \
34 $CONFIGURE_ARGS &&
35 make &&
36 make DESTDIR=$PWD/_pkg install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr/lib \
43 $fs/usr/share/applications \
44 $fs/usr/share/pixmaps
45 cp -a $_pkg/usr/bin $fs/usr
46 cp -a $_pkg/usr/lib/dillo $fs/usr/lib
47 strip -s $fs/usr/lib/dillo/dpi/*/*
48 chmod +x $fs/usr/bin/*
49 # Config files with custom dillorc and desktop file.
50 cp -a $_pkg/etc $fs
51 cp stuff/dillorc $fs/etc/dillo
52 cp -a stuff/dillo.desktop $fs/usr/share/applications
53 cp -a stuff/dillo.png $fs/usr/share/pixmaps
54 # Webhome
55 cp -a stuff/webhome $fs/usr/share
56 chown -R root.root $fs
57 }
59 pre_install()
60 {
61 if [ -d $1/var/lib/tazpkg/installed/$CONFLICTS ]; then
62 echo "y" | tazpkg remove $CONFLICTS
63 fi
64 }