wok-6.x annotate gnome-calculator/receipt @ rev 20618
Update gnome-calculator
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Dec 25 17:47:14 2018 +0100 (2018-12-25) |
parents | 6fab3264ba87 |
children | 6cdb314e15d8 |
rev | line source |
---|---|
yuripourre@16826 | 1 # SliTaz package receipt. |
yuripourre@16826 | 2 |
yuripourre@16826 | 3 PACKAGE="gnome-calculator" |
yuripourre@16826 | 4 VERSION="3.10.2" |
yuripourre@16826 | 5 CATEGORY="utilities" |
yuripourre@16826 | 6 LICENSE="GPL3" |
yuripourre@16826 | 7 SHORT_DESC="GNOME Calculator is a powerful graphical calculator with financial, logical and scientific modes." |
yuripourre@16826 | 8 MAINTAINER="yuripourre@gmail.com" |
yuripourre@16826 | 9 TARBALL="$PACKAGE-$VERSION.tar.xz" |
yuripourre@16826 | 10 WEB_SITE="https://wiki.gnome.org/Apps/Calculator" |
yuripourre@16826 | 11 WGET_URL="http://ftp.gnome.org/pub/gnome/sources/$PACKAGE/${VERSION%.*}/$TARBALL" |
yuripourre@16826 | 12 |
yuripourre@16826 | 13 DEPENDS="gtk+3 glib" |
al@17073 | 14 BUILD_DEPENDS="gtk+3-dev glib-dev itstool yelp-xsl vala" |
yuripourre@16826 | 15 |
al@17072 | 16 L10N_MO="af am ar as ast az be@latin be bg bn_IN bn bs ca ca@valencia cs cy da \ |
al@17072 | 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 \ |
al@17072 | 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 \ |
al@17072 | 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 \ |
al@17072 | 20 xh zh_CN zh_HK zh_TW" |
al@17072 | 21 |
yuripourre@16826 | 22 # Rules to configure and make the package. |
yuripourre@16826 | 23 compile_rules() |
yuripourre@16826 | 24 { |
pascal@20618 | 25 sed -i -e 's|Number.integer (num|this.integer (num|' \ |
pascal@20618 | 26 -e 's|Number.double (Math.PI)|this.double (Math.PI)|' \ |
pascal@20618 | 27 -e 's|Number.complex (x.multiply|this.complex (x.multiply|' \ |
pascal@20618 | 28 -e 's|Number.double (Random|this.double (Random|' \ |
pascal@20618 | 29 src/number.vala |
pascal@20618 | 30 sed -i 's|.*insert_with_tags.*|#if VALA_0_28\ |
pascal@20618 | 31 insert_with_tags (ref ans_end, ans_text, -1, ans_tag);\ |
pascal@20618 | 32 #else\n&\n#endif|' src/math-equation.vala |
pascal@20618 | 33 |
al@17072 | 34 # SliTaz icon theme has no symbolic icons |
al@17072 | 35 sed -i 's|-symbolic||g' $src/data/buttons*.ui |
al@17072 | 36 |
yuripourre@16826 | 37 ./configure \ |
yuripourre@16826 | 38 --prefix=/usr \ |
yuripourre@16826 | 39 $CONFIGURE_ARGS && |
yuripourre@16826 | 40 make && |
yuripourre@16826 | 41 make DESTDIR=$DESTDIR install |
yuripourre@16826 | 42 } |
yuripourre@16826 | 43 |
yuripourre@16826 | 44 genpkg_rules() |
yuripourre@16826 | 45 { |
yuripourre@16826 | 46 cp -a $install/usr $fs |
al@17072 | 47 rm -rf $fs/usr/share/locale |
yuripourre@16826 | 48 } |