wok view homebank/receipt @ rev 25770
dool,fake-hwclock,gtkam,xfce4-*-plugin,xlogo: add current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Sep 06 11:29:23 2024 +0000 (2 months ago) |
parents | a3503ff52a2e |
children |
line source
1 # SliTaz package receipt
3 PACKAGE="homebank"
4 VERSION="4.4"
5 CATEGORY="office"
6 SHORT_DESC="Personal accounts manager."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://launchpad.net/homebank"
11 WGET_URL="https://download.tuxfamily.org/slitaz/sources/packages-cooking/${TARBALL:0:1}/$TARBALL"
12 TAGS="office finance"
14 DEPENDS="gtk+ xorg-libXdamage"
15 BUILD_DEPENDS="intltool gtk+-dev"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - ${WGET_URL%/*} 2>/dev/null | \
21 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 # GTK+ dont support svg
28 sed -i s/svg/png/ src/*.c
29 chmod +x install-sh
30 ./configure --without-ofx &&
31 make &&
32 make install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr/share/homebank $fs/usr/share/icons/hicolor
40 cp -a $install/usr/bin $fs/usr
41 cp -a $install/usr/share/homebank/images $fs/usr/share/homebank
42 cp -a $install/usr/share/icons/hicolor/48x48 $fs/usr/share/icons/hicolor
43 }