wok annotate galculator/receipt @ rev 25229

updated python-pyst2 (0.5.0 -> 0.5.1)
author Hans-G?nter Theisgen
date Wed Jul 13 16:59:13 2022 +0100 (2022-07-13)
parents 5ea0ce1cecc0
children
rev   line source
pankso@518 1 # SliTaz package receipt.
pankso@518 2
pankso@518 3 PACKAGE="galculator"
Hans-G?nter@22789 4 VERSION="2.1.4"
pankso@518 5 CATEGORY="system-tools"
pankso@518 6 SHORT_DESC="Graphical scientific calculator."
pankso@518 7 MAINTAINER="pankso@slitaz.org"
pascal@15000 8 LICENSE="GPL2"
Hans-G?nter@22789 9 WEB_SITE="http://galculator.mnim.org/"
Hans-G?nter@22789 10
pankso@518 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@22789 12 WGET_URL="https://github.com/$PACKAGE/$PACKAGE/archive/v$VERSION/$TARBALL"
Hans-G?nter@22789 13
Hans-G?nter@22789 14 DEPENDS="gtk+"
Hans-G?nter@22789 15 BUILD_DEPENDS="autoconf automake flex gtk+-dev libtool sdft"
Hans-G?nter@22789 16
al@16925 17 GENERIC_PIXMAPS="no"; GENERIC_MENUS="no"
pankso@518 18
Hans-G?nter@22789 19 HOST_ARCH="i486 arm"
al@13718 20
pascal@24055 21 current_version()
pascal@24055 22 {
pascal@24299 23 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
pascal@24055 24 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
pascal@24055 25 }
pascal@24055 26
pankso@518 27 # Rules to configure and make the package.
pankso@518 28 compile_rules()
pankso@518 29 {
pascal@12787 30 # Binutils 2.22 break many packages build without LDFLAGS set correctly.
pascal@17670 31 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries"
al@16925 32
Hans-G?nter@22789 33 mkdir m4
Hans-G?nter@22789 34 ./autogen.sh \
Hans-G?nter@22789 35 --enable-gtk3=no \
Hans-G?nter@22789 36 --disable-quadmath \
al@16925 37 $CONFIGURE_ARGS &&
Hans-G?nter@22789 38 make &&
Hans-G?nter@22789 39 make install &&
pascal@17753 40 sdft $install/usr/share/applications/galculator.desktop -i -tf \
pascal@17753 41 -a "Name[fr]=Calculatrice scientifique" \
pascal@17753 42 -a "Name[pt]=Calculadora Científica" \
pascal@17753 43 -a "Name[pt_BR]=Calculadora Científica" \
pascal@17753 44 -a "Name[ru]=Инженерный калькулятор" \
pascal@17753 45 -a "Name[zh_CN]=科学计算器" \
pascal@17753 46 -a "Comment[ru]=Выполняйте простые и инженерные вычисления" \
al@18545 47 -s "Icon=accessories-calculator" \
pascal@17753 48 -s "Categories=Utility;Calculator;"
pankso@518 49 }
pankso@518 50
pankso@518 51 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@518 52 genpkg_rules()
pankso@518 53 {
al@16925 54 mkdir -p $fs/usr/share/icons/hicolor/48x48
al@16925 55
Hans-G?nter@22789 56 cp -a $install/usr/bin $fs/usr
al@16925 57
Hans-G?nter@22789 58 cp -a $install/usr/share/galculator $fs/usr/share
al@16925 59 find $fs/usr/share/galculator -name '*gtk3*' -delete
al@16925 60 sed -i 's|^[ ]*||g' $fs/usr/share/galculator/ui/*
al@16925 61
Hans-G?nter@22789 62 cp -a $install/usr/share/icons/hicolor/48x48/apps \
Hans-G?nter@22789 63 $fs/usr/share/icons/hicolor/48x48
al@16925 64
Hans-G?nter@22789 65 cp -a $install/usr/share/applications $fs/usr/share
pankso@518 66 }