wok-6.x view galculator/receipt @ rev 22506
updated asterisk-sound-fr (1.4.16 -> 1.6.1)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Jan 01 13:38:34 2020 +0100 (2020-01-01) |
parents | 9ed282f9d2eb |
children | 8b1698fee11d |
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 "Icon=accessories-calculator" \
37 -s "Categories=Utility;Calculator;"
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/usr/share/icons/hicolor/48x48
45 cp -a $install/usr/bin $fs/usr
47 cp -a $install/usr/share/galculator $fs/usr/share
48 find $fs/usr/share/galculator -name '*gtk3*' -delete
49 sed -i 's|^[ ]*||g' $fs/usr/share/galculator/ui/*
51 cp -a $install/usr/share/icons/hicolor/48x48/apps $fs/usr/share/icons/hicolor/48x48
53 cp -a $install/usr/share/applications $fs/usr/share
54 }