wok-current view gnome-calculator/receipt @ rev 24538
updated fbcat (0.5.1 -> 0.5.2)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Feb 23 15:14:49 2022 +0100 (2022-02-23) |
parents | 6cdb314e15d8 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="gnome-calculator"
4 VERSION="3.10.2"
5 CATEGORY="utilities"
6 LICENSE="GPL3"
7 SHORT_DESC="GNOME Calculator is a powerful graphical calculator with financial, logical and scientific modes."
8 MAINTAINER="yuripourre@gmail.com"
9 TARBALL="$PACKAGE-$VERSION.tar.xz"
10 WEB_SITE="https://wiki.gnome.org/Apps/Calculator"
11 WGET_URL="http://ftp.gnome.org/pub/gnome/sources/$PACKAGE/${VERSION%.*}/$TARBALL"
13 DEPENDS="gtk+3 glib"
14 BUILD_DEPENDS="gtk+3-dev glib-dev itstool yelp-xsl vala"
16 L10N_MO="af am ar as ast az be@latin be bg bn_IN bn bs ca ca@valencia cs cy da \
17 de dz el en_CA en_GB en@shaw en_US eo es et eu fa fi fr ga gl gu he hi hr hu \
18 hy id it ja ka kk km kn ko ku lt lv mai mg mk ml mn mr ms my nb ne nl nn oc or \
19 pa pl pt_BR pt ro ru rw si sk sl sq sr@latin sr sv ta te tg th tk tr ug uk vi \
20 xh zh_CN zh_HK zh_TW"
22 current_version()
23 {
24 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
25 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
26 }
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 sed -i '/xalign/d' src/math-preferences.*
32 sed -i -e 's|Number.integer (num|this.integer (num|' \
33 -e 's|Number.double (Math.PI)|this.double (Math.PI)|' \
34 -e 's|Number.complex (x.multiply|this.complex (x.multiply|' \
35 -e 's|Number.double (Random|this.double (Random|' \
36 src/number.vala
37 sed -i 's|.*insert_with_tags.*|#if VALA_0_28\
38 insert_with_tags (ref ans_end, ans_text, -1, ans_tag);\
39 #else\n&\n#endif|' src/math-equation.vala
41 # SliTaz icon theme has no symbolic icons
42 sed -i 's|-symbolic||g' $src/data/buttons*.ui
44 ./configure \
45 --prefix=/usr \
46 $CONFIGURE_ARGS &&
47 make &&
48 make DESTDIR=$DESTDIR install
49 }
51 genpkg_rules()
52 {
53 cp -a $install/usr $fs
54 rm -rf $fs/usr/share/locale
55 }