wok-next annotate homebank/receipt @ rev 1049
Add homebank (Account manager) - Office suite is complet!
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat Jul 12 21:48:23 2008 +0200 (2008-07-12) |
parents | |
children | b64b8906e6a7 |
rev | line source |
---|---|
pankso@1049 | 1 # SliTaz package receipt |
pankso@1049 | 2 |
pankso@1049 | 3 PACKAGE="homebank" |
pankso@1049 | 4 VERSION="3.8" |
pankso@1049 | 5 CATEGORY="office" |
pankso@1049 | 6 SHORT_DESC="Personal accounts manager." |
pankso@1049 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@1049 | 8 DEPENDS="gtk+" |
pankso@1049 | 9 BUILD_DEPENDS="gtk+-dev inkscape" |
pankso@1049 | 10 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@1049 | 11 WEB_SITE="http://homebank.free.fr/" |
pankso@1049 | 12 WGET_URL="http://homebank.free.fr/public/$TARBALL" |
pankso@1049 | 13 |
pankso@1049 | 14 # Rules to configure and make the package. |
pankso@1049 | 15 compile_rules() |
pankso@1049 | 16 { |
pankso@1049 | 17 cd $src |
pankso@1049 | 18 # GTK+ dont support svg |
pankso@1049 | 19 sed -i s/svg/png/ src/*.c |
pankso@1049 | 20 ./configure \ |
pankso@1049 | 21 --prefix=/usr \ |
pankso@1049 | 22 $CONFIGURE_ARGS |
pankso@1049 | 23 make |
pankso@1049 | 24 make DESTDIR=$PWD/_pkg install |
pankso@1049 | 25 } |
pankso@1049 | 26 |
pankso@1049 | 27 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@1049 | 28 genpkg_rules() |
pankso@1049 | 29 { |
pankso@1049 | 30 mkdir -p $fs/usr/share/homebank |
pankso@1049 | 31 cp -a $_pkg/usr/bin $fs/usr |
pankso@1049 | 32 cp -a $_pkg/usr/share/mime $fs/usr/share |
pankso@1049 | 33 cp -a $_pkg/usr/share/homebank/images $fs/usr/share/homebank |
pankso@1049 | 34 # Resize and export all SVG images to PNG. |
pankso@1049 | 35 cd $fs/usr/share/homebank/images |
pankso@1049 | 36 for img in *.svg |
pankso@1049 | 37 do |
pankso@1049 | 38 inkscape --export-width=32 --export-height=32 \ |
pankso@1049 | 39 --export-png=${img%.svg}.png $img |
pankso@1049 | 40 done |
pankso@1049 | 41 rm *.svg |
pankso@1049 | 42 } |