wok-current view gnucash/receipt @ rev 18316
Up gparted (0.23.0)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Aug 28 14:23:31 2015 +0200 (2015-08-28) |
parents | 5c9478a63c92 |
children | d6ca18366f41 |
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 guile libgnomecanvas libofx libwebkit libxml2 \
15 libxslt perl slib zlib util-linux-uuid"
16 BUILD_DEPENDS="glib-dev gtk+-dev goffice-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 # Rules to configure and make the package.
21 compile_rules()
22 {
23 # busybox compliance
24 sed -i 's/cat -s/cat/g' $src/doc/Makefile.in
25 # build
26 ./configure \
27 --prefix=/usr \
28 --sysconfdir=/etc \
29 --libexecdir=/usr/lib \
30 --disable-dbi \
31 --enable-ofx \
32 --disable-aqbanking \
33 --enable-locale-specific-tax \
34 $CONFIGURE_ARGS &&
35 make &&
36 make -j1 install $DESTDIR=$install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr/share/locale
43 # /etc
44 cp -a $install/etc $fs
45 # /usr/bin
46 cp -a $install/usr/bin $fs/usr
47 # /usr/lib
48 cp -a $install/usr/lib $fs/usr
49 rm -f $fs/usr/lib/*.*a
50 rm -f $fs/usr/lib/gnucash/*.*a
51 # /usr/share
52 local sharedirs="appdata applications glib-2.0 gnucash"
53 for dir in $sharedirs; do
54 cp -a $install/usr/share/$dir $fs/usr/share
55 done
56 # desktop file and icon
57 mkdir -p $fs/usr/share/pixmaps
58 cp -a $install/usr/share/icons/hicolor/32x32/apps/gnucash-icon.png \
59 $fs/usr/share/pixmaps/gnucash.png
60 sed -i 's/Icon=.*/Icon=gnucash/' \
61 $install/usr/share/applications/gnucash.desktop
62 # locales
63 for locale in $LOCALES; do
64 cp -a $install/usr/share/locale/$locale $fs/usr/share/locale
65 done
66 }
68 # Post install/remove commands for Tazpkg.
69 post_install()
70 {
71 echo "Processing post-install commands..."
72 chroot "$1/" /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas
73 }
75 post_remove()
76 {
77 echo "Processing post-remove commands..."
78 chroot "$1/" /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas
79 }