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