wok-6.x view homebank/receipt @ rev 2483

gxmessage, gtk*: update depends
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Mar 15 21:03:13 2009 +0000 (2009-03-15)
parents b64b8906e6a7
children be4b9618ea05
line source
1 # SliTaz package receipt
3 PACKAGE="homebank"
4 VERSION="4.0"
5 CATEGORY="office"
6 SHORT_DESC="Personal accounts manager."
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS="gtk+"
9 BUILD_DEPENDS="gtk+-dev inkscape"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WEB_SITE="http://homebank.free.fr/"
12 WGET_URL="http://homebank.free.fr/public/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 # GTK+ dont support svg
19 sed -i s/svg/png/ src/*.c
20 ./configure \
21 --prefix=/usr \
22 $CONFIGURE_ARGS
23 make
24 make DESTDIR=$PWD/_pkg install
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 mkdir -p $fs/usr/share/homebank $fs/usr/share/pixmaps
32 cp -a $_pkg/usr/bin $fs/usr
33 cp -a $_pkg/usr/share/mime $fs/usr/share
34 cp -a $_pkg/usr/share/homebank/images $fs/usr/share/homebank
35 #copying homebank icon.
36 cp -a "$_pkg/usr/share/icons/hicolor/48x48/apps/homebank.png" $fs/usr/share/pixmaps
37 # Resize and export all SVG images to PNG.
38 cd $fs/usr/share/homebank/images
39 for img in *.svg
40 do
41 inkscape --export-width=32 --export-height=32 \
42 --export-png=${img%.svg}.png $img
43 done
44 rm *.svg
45 }