wok diff 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
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/homebank/receipt	Sat Jul 12 21:48:23 2008 +0200
     1.3 @@ -0,0 +1,42 @@
     1.4 +# SliTaz package receipt
     1.5 +
     1.6 +PACKAGE="homebank"
     1.7 +VERSION="3.8"
     1.8 +CATEGORY="office"
     1.9 +SHORT_DESC="Personal accounts manager."
    1.10 +MAINTAINER="pankso@slitaz.org"
    1.11 +DEPENDS="gtk+"
    1.12 +BUILD_DEPENDS="gtk+-dev inkscape"
    1.13 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.14 +WEB_SITE="http://homebank.free.fr/"
    1.15 +WGET_URL="http://homebank.free.fr/public/$TARBALL"
    1.16 +
    1.17 +# Rules to configure and make the package.
    1.18 +compile_rules()
    1.19 +{	
    1.20 +	cd $src
    1.21 +	# GTK+ dont support svg
    1.22 +	sed -i s/svg/png/ src/*.c
    1.23 +	./configure \
    1.24 +		--prefix=/usr \
    1.25 +		$CONFIGURE_ARGS
    1.26 +	make
    1.27 +	make DESTDIR=$PWD/_pkg install
    1.28 +}
    1.29 +
    1.30 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.31 +genpkg_rules()
    1.32 +{
    1.33 +	mkdir -p $fs/usr/share/homebank
    1.34 +	cp -a $_pkg/usr/bin $fs/usr
    1.35 +	cp -a $_pkg/usr/share/mime $fs/usr/share
    1.36 +	cp -a $_pkg/usr/share/homebank/images $fs/usr/share/homebank
    1.37 +	# Resize and export all SVG images to PNG.
    1.38 +	cd $fs/usr/share/homebank/images
    1.39 +	for img in *.svg
    1.40 +	do
    1.41 +		inkscape --export-width=32 --export-height=32 \
    1.42 +			--export-png=${img%.svg}.png $img
    1.43 +	done
    1.44 +	rm *.svg
    1.45 +}