wok view gnucash/receipt @ rev 24783
Up apache-ant (1.10.12)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Mar 20 12:11:06 2022 +0000 (2022-03-20) |
parents | 6ef4249c53aa |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="gnucash"
4 VERSION="2.6.3"
5 CATEGORY="office"
6 SHORT_DESC="Financial-accounting software"
7 MAINTAINER="domcox@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.gnucash.org"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
12 LOCALES="cs da de el es fr hu it pl pt pt_BR ru sv zh_CN zh_TW"
14 DEPENDS="glib gtk+ goffice-gtk2 guile libgnomecanvas libofx libwebkit libxml2 \
15 libxslt perl slib zlib util-linux-uuid"
16 BUILD_DEPENDS="glib-dev gtk+-dev goffice-gtk2-dev guile-dev libgnomecanvas-dev \
17 libofx-dev libwebkit-dev libxml2-dev libxslt-dev perl slib zlib-dev intltool \
18 util-linux-uuid-dev libtool"
20 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - 'https://sourceforge.net/projects/gnucash/files/gnucash (stable)/' 2>/dev/null | \
24 sed '/scope="row/!d;s|.*stable%29/||;s|/.*||;q'
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 # busybox compliance
31 sed -i 's/cat -s/cat/g' $src/doc/Makefile.in
32 # build
33 ./configure \
34 --prefix=/usr \
35 --sysconfdir=/etc \
36 --libexecdir=/usr/lib \
37 --disable-dbi \
38 --enable-ofx \
39 --disable-aqbanking \
40 --enable-locale-specific-tax \
41 $CONFIGURE_ARGS &&
42 make &&
43 make -j1 install DESTDIR=$install
44 }
46 # Rules to gen a SliTaz package suitable for Tazpkg.
47 genpkg_rules()
48 {
49 mkdir -p $fs/usr/share/locale
50 # /etc
51 cp -a $install/etc $fs
52 # /usr/bin
53 cp -a $install/usr/bin $fs/usr
54 # /usr/lib
55 cp -a $install/usr/lib $fs/usr
56 rm -f $fs/usr/lib/*.*a
57 rm -f $fs/usr/lib/gnucash/*.*a
58 # /usr/share
59 local sharedirs="appdata applications glib-2.0 gnucash"
60 for dir in $sharedirs; do
61 cp -a $install/usr/share/$dir $fs/usr/share
62 done
63 # desktop file and icon
64 mkdir -p $fs/usr/share/pixmaps
65 cp -a $install/usr/share/icons/hicolor/32x32/apps/gnucash-icon.png \
66 $fs/usr/share/pixmaps/gnucash.png
67 sed -i 's/Icon=.*/Icon=gnucash/' \
68 $install/usr/share/applications/gnucash.desktop
69 # locales
70 for locale in $LOCALES; do
71 cp -a $install/usr/share/locale/$locale $fs/usr/share/locale
72 done
73 }