wok-current view homebank/receipt @ rev 4446

Up: ndiswrapper-driver, utils;fix WGET_URL
author Rohit Joshi <jozee@slitaz.org>
date Thu Nov 05 19:41:12 2009 +0000 (2009-11-05)
parents be4b9618ea05
children c6ccd6bc43b1
line source
1 # SliTaz package receipt
3 PACKAGE="homebank"
4 VERSION="4.0.2"
5 CATEGORY="office"
6 SHORT_DESC="Personal accounts manager."
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS="gtk+ xorg-libXdamage"
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 }