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