wok-current annotate dillo-hg/receipt @ rev 6936
Up: PyQt-x11-gpl to 4.8.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sat Oct 23 15:10:27 2010 +0000 (2010-10-23) |
parents | 6e90579538d6 |
children | 4420775b8cf6 |
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" |
pankso@2820 | 14 |
pankso@2820 | 15 # Rules to configure and make the package. |
pankso@2820 | 16 compile_rules() |
pankso@2820 | 17 { |
pankso@2820 | 18 [ -d "$PACKAGE-$VERSION" ] && rm -rf $PACKAGE-$VERSION |
pascal@5559 | 19 TARBALL=$SOURCES_REPOSITORY/$PACKAGE-$VERSION.tar.gz |
pascal@5559 | 20 if [ -f $TARBALL ]; then |
pascal@5559 | 21 tar xzf $TARBALL |
pascal@5559 | 22 else |
pascal@5559 | 23 echo "Cloning revision $VERSION from Dillo repository..." |
pascal@5559 | 24 hg clone --rev $VERSION \ |
pascal@5559 | 25 http://hg.dillo.org/dillo $PACKAGE-$VERSION || exit 0 |
pascal@5559 | 26 tar czf $TARBALL $PACKAGE-$VERSION |
pascal@5559 | 27 fi |
pankso@2820 | 28 cd $src |
pankso@2820 | 29 ./autogen.sh && |
pankso@2820 | 30 ./configure \ |
pankso@4160 | 31 --sysconfdir=/etc \ |
pankso@2820 | 32 --prefix=/usr \ |
pankso@2895 | 33 --enable-ssl \ |
pankso@2820 | 34 $CONFIGURE_ARGS && |
pankso@2820 | 35 make && |
pankso@2820 | 36 make DESTDIR=$PWD/_pkg install |
pankso@2820 | 37 } |
pankso@2820 | 38 |
pankso@2820 | 39 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@2820 | 40 genpkg_rules() |
pankso@2820 | 41 { |
pankso@2820 | 42 mkdir -p $fs/usr/lib \ |
pankso@2820 | 43 $fs/usr/share/applications \ |
pankso@2820 | 44 $fs/usr/share/pixmaps |
pankso@2820 | 45 cp -a $_pkg/usr/bin $fs/usr |
pankso@2820 | 46 cp -a $_pkg/usr/lib/dillo $fs/usr/lib |
pankso@2820 | 47 strip -s $fs/usr/lib/dillo/dpi/*/* |
pankso@2820 | 48 chmod +x $fs/usr/bin/* |
pankso@2895 | 49 # Config files with custom dillorc and desktop file. |
pankso@2820 | 50 cp -a $_pkg/etc $fs |
pankso@2820 | 51 cp stuff/dillorc $fs/etc/dillo |
pankso@2820 | 52 cp -a stuff/dillo.desktop $fs/usr/share/applications |
pankso@2820 | 53 cp -a stuff/dillo.png $fs/usr/share/pixmaps |
pankso@2836 | 54 # Webhome |
pankso@2836 | 55 cp -a stuff/webhome $fs/usr/share |
pankso@2820 | 56 chown -R root.root $fs |
pankso@2820 | 57 } |
pankso@2820 | 58 |
pankso@2820 | 59 pre_install() |
pankso@2820 | 60 { |
pankso@2820 | 61 if [ -d $1/var/lib/tazpkg/installed/$CONFLICTS ]; then |
pankso@2820 | 62 echo "y" | tazpkg remove $CONFLICTS |
pankso@2820 | 63 fi |
pankso@2820 | 64 } |