wok-6.x view galculator/receipt @ rev 17753
galculator: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Mar 09 09:04:34 2015 +0100 (2015-03-09) |
parents | 17e313b5b9c1 |
children | 5e26ab6bd360 |
line source
1 # SliTaz package receipt.
3 PACKAGE="galculator"
4 VERSION="2.1.3"
5 CATEGORY="system-tools"
6 SHORT_DESC="Graphical scientific calculator."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://galculator.sourceforge.net/"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
12 HOST_ARCH="i486 arm"
13 GENERIC_PIXMAPS="no"; GENERIC_MENUS="no"
15 DEPENDS="gtk+"
16 BUILD_DEPENDS="gtk+-dev flex sdft"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 # Binutils 2.22 break many packages build without LDFLAGS set correctly.
22 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries"
24 ./configure \
25 --disable-gtk3 \
26 --disable-quadmath \
27 $CONFIGURE_ARGS &&
28 make && make install
29 sdft $install/usr/share/applications/galculator.desktop -i -tf \
30 -a "Name[fr]=Calculatrice scientifique" \
31 -a "Name[pt]=Calculadora Científica" \
32 -a "Name[pt_BR]=Calculadora Científica" \
33 -a "Name[ru]=Инженерный калькулятор" \
34 -a "Name[zh_CN]=科学计算器" \
35 -a "Comment[ru]=Выполняйте простые и инженерные вычисления" \
36 -s "Categories=Utility;Calculator;"
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr/share/icons/hicolor/48x48
44 cp -a $install/usr/bin $fs/usr
46 cp -a $install/usr/share/galculator $fs/usr/share
47 find $fs/usr/share/galculator -name '*gtk3*' -delete
48 sed -i 's|^[ ]*||g' $fs/usr/share/galculator/ui/*
50 cp -a $install/usr/share/icons/hicolor/48x48/apps $fs/usr/share/icons/hicolor/48x48
52 cp -a $install/usr/share/applications $fs/usr/share
53 }