wok annotate 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
rev   line source
pankso@2820 1 # SliTaz package receipt.
pankso@2820 2
pankso@2820 3 PACKAGE="dillo-hg"
pankso@4160 4 VERSION="1326"
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/"
pascal@5000 9 DEPENDS="fltk-2.0.x libpng jpeg zlib xorg-libXi xorg-libXinerama gcc-lib-base"
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"
gokhlayeh@8547 14 WGET_URL="mercurial|http://hg.dillo.org/dillo"
gokhlayeh@8547 15 BRANCH="$VERSION"
pankso@2820 16
pankso@2820 17 # Rules to configure and make the package.
pankso@2820 18 compile_rules()
pankso@2820 19 {
pankso@2820 20 cd $src
pankso@2820 21 ./autogen.sh &&
pankso@2820 22 ./configure \
pankso@4160 23 --sysconfdir=/etc \
pankso@2820 24 --prefix=/usr \
pankso@2895 25 --enable-ssl \
pankso@2820 26 $CONFIGURE_ARGS &&
pankso@2820 27 make &&
pankso@2820 28 make DESTDIR=$PWD/_pkg install
pankso@2820 29 }
pankso@2820 30
pankso@2820 31 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@2820 32 genpkg_rules()
pankso@2820 33 {
pankso@2820 34 mkdir -p $fs/usr/lib \
pankso@2820 35 $fs/usr/share/applications \
pankso@2820 36 $fs/usr/share/pixmaps
pankso@2820 37 cp -a $_pkg/usr/bin $fs/usr
pankso@2820 38 cp -a $_pkg/usr/lib/dillo $fs/usr/lib
pankso@2820 39 strip -s $fs/usr/lib/dillo/dpi/*/*
pankso@2820 40 chmod +x $fs/usr/bin/*
pankso@2895 41 # Config files with custom dillorc and desktop file.
pankso@2820 42 cp -a $_pkg/etc $fs
pankso@2820 43 cp stuff/dillorc $fs/etc/dillo
pankso@2820 44 cp -a stuff/dillo.desktop $fs/usr/share/applications
pankso@2820 45 cp -a stuff/dillo.png $fs/usr/share/pixmaps
pankso@2836 46 # Webhome
pankso@2836 47 cp -a stuff/webhome $fs/usr/share
pankso@2820 48 chown -R root.root $fs
pankso@2820 49 }
pankso@2820 50
pankso@2820 51 pre_install()
pankso@2820 52 {
pankso@2820 53 if [ -d $1/var/lib/tazpkg/installed/$CONFLICTS ]; then
pankso@2820 54 echo "y" | tazpkg remove $CONFLICTS
pankso@2820 55 fi
pankso@2820 56 }