wok annotate gnome-calculator/receipt @ rev 25037

Up glza (0.11.4)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 21 21:38:29 2022 +0000 (24 months ago)
parents 6cdb314e15d8
children
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
pascal@24111 22 current_version()
pascal@24111 23 {
pascal@24111 24 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
pascal@24111 25 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24111 26 }
pascal@24111 27
yuripourre@16826 28 # Rules to configure and make the package.
yuripourre@16826 29 compile_rules()
yuripourre@16826 30 {
pascal@20619 31 sed -i '/xalign/d' src/math-preferences.*
pascal@20618 32 sed -i -e 's|Number.integer (num|this.integer (num|' \
pascal@20618 33 -e 's|Number.double (Math.PI)|this.double (Math.PI)|' \
pascal@20618 34 -e 's|Number.complex (x.multiply|this.complex (x.multiply|' \
pascal@20618 35 -e 's|Number.double (Random|this.double (Random|' \
pascal@20618 36 src/number.vala
pascal@20618 37 sed -i 's|.*insert_with_tags.*|#if VALA_0_28\
pascal@20618 38 insert_with_tags (ref ans_end, ans_text, -1, ans_tag);\
pascal@20618 39 #else\n&\n#endif|' src/math-equation.vala
pascal@20618 40
al@17072 41 # SliTaz icon theme has no symbolic icons
al@17072 42 sed -i 's|-symbolic||g' $src/data/buttons*.ui
al@17072 43
yuripourre@16826 44 ./configure \
yuripourre@16826 45 --prefix=/usr \
yuripourre@16826 46 $CONFIGURE_ARGS &&
yuripourre@16826 47 make &&
yuripourre@16826 48 make DESTDIR=$DESTDIR install
yuripourre@16826 49 }
yuripourre@16826 50
yuripourre@16826 51 genpkg_rules()
yuripourre@16826 52 {
yuripourre@16826 53 cp -a $install/usr $fs
al@17072 54 rm -rf $fs/usr/share/locale
yuripourre@16826 55 }