wok-current view galculator/receipt @ rev 22987
updated kkedit (0.2.11 -> 0.4.2)
author | Hans-G?nter Theisgen |
---|---|
date | Sun Mar 01 16:20:31 2020 +0100 (2020-03-01) |
parents | 5e26ab6bd360 |
children | 5ea0ce1cecc0 |
line source
1 # SliTaz package receipt.
3 PACKAGE="galculator"
4 VERSION="2.1.4"
5 CATEGORY="system-tools"
6 SHORT_DESC="Graphical scientific calculator."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://galculator.mnim.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/$PACKAGE/$PACKAGE/archive/v$VERSION/$TARBALL"
14 DEPENDS="gtk+"
15 BUILD_DEPENDS="autoconf automake flex gtk+-dev libtool sdft"
17 GENERIC_PIXMAPS="no"; GENERIC_MENUS="no"
19 HOST_ARCH="i486 arm"
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 # Binutils 2.22 break many packages build without LDFLAGS set correctly.
25 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries"
27 mkdir m4
28 ./autogen.sh \
29 --enable-gtk3=no \
30 --disable-quadmath \
31 $CONFIGURE_ARGS &&
32 make &&
33 make install &&
34 sdft $install/usr/share/applications/galculator.desktop -i -tf \
35 -a "Name[fr]=Calculatrice scientifique" \
36 -a "Name[pt]=Calculadora Científica" \
37 -a "Name[pt_BR]=Calculadora Científica" \
38 -a "Name[ru]=Инженерный калькулятор" \
39 -a "Name[zh_CN]=科学计算器" \
40 -a "Comment[ru]=Выполняйте простые и инженерные вычисления" \
41 -s "Icon=accessories-calculator" \
42 -s "Categories=Utility;Calculator;"
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 mkdir -p $fs/usr/share/icons/hicolor/48x48
50 cp -a $install/usr/bin $fs/usr
52 cp -a $install/usr/share/galculator $fs/usr/share
53 find $fs/usr/share/galculator -name '*gtk3*' -delete
54 sed -i 's|^[ ]*||g' $fs/usr/share/galculator/ui/*
56 cp -a $install/usr/share/icons/hicolor/48x48/apps \
57 $fs/usr/share/icons/hicolor/48x48
59 cp -a $install/usr/share/applications $fs/usr/share
60 }