wok view dillo-hg/receipt @ rev 8547

imported patch get/dillo-hg
author Antoine Bodin <gokhlayeh@slitaz.org>
date Sun Feb 13 22:57:56 2011 +0100 (2011-02-13)
parents 39f586a2b014
children
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"
14 WGET_URL="mercurial|http://hg.dillo.org/dillo"
15 BRANCH="$VERSION"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 ./autogen.sh &&
22 ./configure \
23 --sysconfdir=/etc \
24 --prefix=/usr \
25 --enable-ssl \
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/applications \
36 $fs/usr/share/pixmaps
37 cp -a $_pkg/usr/bin $fs/usr
38 cp -a $_pkg/usr/lib/dillo $fs/usr/lib
39 strip -s $fs/usr/lib/dillo/dpi/*/*
40 chmod +x $fs/usr/bin/*
41 # Config files with custom dillorc and desktop file.
42 cp -a $_pkg/etc $fs
43 cp stuff/dillorc $fs/etc/dillo
44 cp -a stuff/dillo.desktop $fs/usr/share/applications
45 cp -a stuff/dillo.png $fs/usr/share/pixmaps
46 # Webhome
47 cp -a stuff/webhome $fs/usr/share
48 chown -R root.root $fs
49 }
51 pre_install()
52 {
53 if [ -d $1/var/lib/tazpkg/installed/$CONFLICTS ]; then
54 echo "y" | tazpkg remove $CONFLICTS
55 fi
56 }