wok view homebank/receipt @ rev 1051

lostirc: preconfigure freenode with slitaz chan
author Christophe Lincoln <pankso@slitaz.org>
date Sun Jul 13 12:56:55 2008 +0200 (2008-07-13)
parents
children b64b8906e6a7
line source
1 # SliTaz package receipt
3 PACKAGE="homebank"
4 VERSION="3.8"
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
31 cp -a $_pkg/usr/bin $fs/usr
32 cp -a $_pkg/usr/share/mime $fs/usr/share
33 cp -a $_pkg/usr/share/homebank/images $fs/usr/share/homebank
34 # Resize and export all SVG images to PNG.
35 cd $fs/usr/share/homebank/images
36 for img in *.svg
37 do
38 inkscape --export-width=32 --export-height=32 \
39 --export-png=${img%.svg}.png $img
40 done
41 rm *.svg
42 }