wok-next annotate gnucash/receipt @ rev 15740

Up: gnucash (2.6.0)
author Dominique Corbex <domcox@slitaz.org>
date Wed Jan 01 20:49:09 2014 +0100 (2014-01-01)
parents 97ac1a0d4e37
children 731d8c9f6e94
rev   line source
pascal@14379 1 # SliTaz package receipt.
pascal@14379 2
pascal@14379 3 PACKAGE="gnucash"
domcox@15740 4 VERSION="2.6.0"
pascal@14379 5 CATEGORY="office"
pascal@14379 6 SHORT_DESC="Financial-accounting software"
pascal@14379 7 MAINTAINER="domcox@slitaz.org"
domcox@15740 8 LICENSE="gpl"
pascal@14379 9 WEB_SITE="http://www.gnucash.org"
pascal@14379 10 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@14379 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
domcox@15740 12 LOCALES="da de es fr it pt_BR ru zh_CN"
pascal@14379 13
domcox@15740 14 DEPENDS="glib gtk+ goffice guile libgnomecanvas libofx libwebkit libxml2 \
domcox@15740 15 libxslt perl slib zlib util-linux-uuid"
domcox@15740 16 BUILD_DEPENDS="glib-dev gtk-dev goffice-dev guile-dev libgnomecanvas-dev \
domcox@15740 17 libofx-dev libwebkit-dev libxml2-dev libxslt-dev perl slib zlib-dev intltool \
domcox@15740 18 util-linux-uuid-dev "
pascal@14379 19
pascal@14379 20 # Rules to configure and make the package.
pascal@14379 21 compile_rules()
pascal@14379 22 {
domcox@15740 23 # busybox compliance
pascal@14379 24 sed -i 's/cat -s/cat/g' $src/doc/Makefile.in
pascal@14379 25 # build
domcox@15740 26 ./configure \
domcox@15740 27 --prefix=/usr \
domcox@15740 28 --sysconfdir=/etc \
domcox@15740 29 --libexecdir=/usr/lib \
pascal@14379 30 --disable-dbi \
domcox@15740 31 --enable-ofx \
pascal@14379 32 --disable-aqbanking \
domcox@15740 33 --enable-locale-specific-tax \
domcox@15740 34 $CONFIGURE_ARGS &&
domcox@15740 35 make &&
domcox@15740 36 make -j1 install $DESTDIR=$install
pascal@14379 37 }
pascal@14379 38
pascal@14379 39 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@14379 40 genpkg_rules()
pascal@14379 41 {
domcox@15740 42 # /etc
domcox@15740 43 cp -a $install/etc $fs
domcox@15740 44 mkdir -p $fs/usr/share
domcox@15740 45 # /usr/bin
domcox@15740 46 cp -a $install/usr/bin $fs/usr
domcox@15740 47 # /usr/lib
domcox@15740 48 cp -a $install/usr/lib $fs/usr
domcox@15740 49 rm -f $fs/usr/lib/*.*a
domcox@15740 50 rm -f $fs/usr/lib/gnucash/*.*a
domcox@15740 51 # /usr/share
domcox@15740 52 local sharedirs="appdata applications glib-2.0 gnucash"
domcox@15740 53 for dir in $sharedirs; do
domcox@15740 54 cp -a $install/usr/share/$dir $fs/usr/share
domcox@15740 55 done
domcox@15740 56 # desktop file and icon
domcox@15740 57 mkdir -p $fs/usr/share/pixmaps
domcox@15740 58 cp -a $install/usr/share/icons/hicolor/32x32/apps/gnucash-icon.png \
domcox@15740 59 $fs/usr/share/pixmaps/gnucash.png
domcox@15740 60 sed -i 's/Icon=.*/Icon=gnucash/' \
domcox@15740 61 $install/usr/share/applications/gnucash.desktop
domcox@15740 62 # locales
domcox@15740 63 for locale in $LOCALES; do
domcox@15740 64 cp -a $install/usr/share/locale/$locale $fs/usr/share/locale
domcox@15740 65 done
pascal@14379 66 }