wok-current view galculator/receipt @ rev 24124

updated transfig (3.2.5d -> 3.2.8b)
author Hans-G?nter Theisgen
date Wed Oct 06 10:26:09 2021 +0100 (2021-10-06)
parents 8b1698fee11d
children ac8ca9758df1
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 current_version()
22 {
23 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
24 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 # Binutils 2.22 break many packages build without LDFLAGS set correctly.
31 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries"
33 mkdir m4
34 ./autogen.sh \
35 --enable-gtk3=no \
36 --disable-quadmath \
37 $CONFIGURE_ARGS &&
38 make &&
39 make install &&
40 sdft $install/usr/share/applications/galculator.desktop -i -tf \
41 -a "Name[fr]=Calculatrice scientifique" \
42 -a "Name[pt]=Calculadora Científica" \
43 -a "Name[pt_BR]=Calculadora Científica" \
44 -a "Name[ru]=Инженерный калькулятор" \
45 -a "Name[zh_CN]=科学计算器" \
46 -a "Comment[ru]=Выполняйте простые и инженерные вычисления" \
47 -s "Icon=accessories-calculator" \
48 -s "Categories=Utility;Calculator;"
49 }
51 # Rules to gen a SliTaz package suitable for Tazpkg.
52 genpkg_rules()
53 {
54 mkdir -p $fs/usr/share/icons/hicolor/48x48
56 cp -a $install/usr/bin $fs/usr
58 cp -a $install/usr/share/galculator $fs/usr/share
59 find $fs/usr/share/galculator -name '*gtk3*' -delete
60 sed -i 's|^[ ]*||g' $fs/usr/share/galculator/ui/*
62 cp -a $install/usr/share/icons/hicolor/48x48/apps \
63 $fs/usr/share/icons/hicolor/48x48
65 cp -a $install/usr/share/applications $fs/usr/share
66 }