wok-current view gnome-calculator/receipt @ rev 21702
updated privoxy (3.0.26 -> 3.0.28)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Jun 06 16:03:11 2019 +0100 (2019-06-06) |
parents | 204f0914c73c |
children | 6831608a1b2a |
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 # Rules to configure and make the package.
23 compile_rules()
24 {
25 sed -i '/xalign/d' src/math-preferences.*
26 sed -i -e 's|Number.integer (num|this.integer (num|' \
27 -e 's|Number.double (Math.PI)|this.double (Math.PI)|' \
28 -e 's|Number.complex (x.multiply|this.complex (x.multiply|' \
29 -e 's|Number.double (Random|this.double (Random|' \
30 src/number.vala
31 sed -i 's|.*insert_with_tags.*|#if VALA_0_28\
32 insert_with_tags (ref ans_end, ans_text, -1, ans_tag);\
33 #else\n&\n#endif|' src/math-equation.vala
35 # SliTaz icon theme has no symbolic icons
36 sed -i 's|-symbolic||g' $src/data/buttons*.ui
38 ./configure \
39 --prefix=/usr \
40 $CONFIGURE_ARGS &&
41 make &&
42 make DESTDIR=$DESTDIR install
43 }
45 genpkg_rules()
46 {
47 cp -a $install/usr $fs
48 rm -rf $fs/usr/share/locale
49 }