wok-4.x annotate homebank/receipt @ rev 5070
update DEPENDS: xorg-xf86-video-nv
author | Rohit Joshi <jozee@slitaz.org> |
---|---|
date | Fri Mar 12 11:29:21 2010 +0000 (2010-03-12) |
parents | 6c5e8bed10af |
children | 455678ba3cb6 |
rev | line source |
---|---|
pankso@1049 | 1 # SliTaz package receipt |
pankso@1049 | 2 |
pankso@1049 | 3 PACKAGE="homebank" |
pascal@2529 | 4 VERSION="4.0.2" |
pankso@1049 | 5 CATEGORY="office" |
pankso@1049 | 6 SHORT_DESC="Personal accounts manager." |
pankso@1049 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@2517 | 8 DEPENDS="gtk+ xorg-libXdamage" |
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" |
jozee@4937 | 13 TAGS="office finance" |
pankso@1049 | 14 |
pankso@1049 | 15 # Rules to configure and make the package. |
pankso@1049 | 16 compile_rules() |
pankso@1049 | 17 { |
pankso@1049 | 18 cd $src |
pankso@1049 | 19 # GTK+ dont support svg |
pankso@1049 | 20 sed -i s/svg/png/ src/*.c |
pankso@1049 | 21 ./configure \ |
pankso@1049 | 22 --prefix=/usr \ |
pascal@2529 | 23 $CONFIGURE_ARGS && |
pascal@2529 | 24 make && |
pankso@1049 | 25 make DESTDIR=$PWD/_pkg install |
pankso@1049 | 26 } |
pankso@1049 | 27 |
pankso@1049 | 28 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@1049 | 29 genpkg_rules() |
pankso@1049 | 30 { |
erjo@1070 | 31 mkdir -p $fs/usr/share/homebank $fs/usr/share/pixmaps |
erjo@1070 | 32 |
pankso@1049 | 33 cp -a $_pkg/usr/bin $fs/usr |
pankso@1049 | 34 cp -a $_pkg/usr/share/mime $fs/usr/share |
pankso@1049 | 35 cp -a $_pkg/usr/share/homebank/images $fs/usr/share/homebank |
erjo@1070 | 36 #copying homebank icon. |
erjo@1070 | 37 cp -a "$_pkg/usr/share/icons/hicolor/48x48/apps/homebank.png" $fs/usr/share/pixmaps |
pankso@1049 | 38 # Resize and export all SVG images to PNG. |
pankso@1049 | 39 cd $fs/usr/share/homebank/images |
pankso@1049 | 40 for img in *.svg |
pankso@1049 | 41 do |
pankso@1049 | 42 inkscape --export-width=32 --export-height=32 \ |
pankso@1049 | 43 --export-png=${img%.svg}.png $img |
pankso@1049 | 44 done |
pankso@1049 | 45 rm *.svg |
pankso@1049 | 46 } |