wok-next view galculator/receipt @ rev 20494

make-slitaz-icons: in multiple choice for 16px request: if 16px and scalable icons both are available, try to choose 16px one, but not the first caught.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Mar 13 23:17:56 2018 +0200 (2018-03-13)
parents 2e9df1b30cc2
children a5d7827e08cf
line source
1 # SliTaz package receipt.
3 PACKAGE="galculator"
4 VERSION="2.1.3"
5 CATEGORY="system-tools"
6 SHORT_DESC="Graphical scientific calculator."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://galculator.sourceforge.net/"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
12 GENERIC_PIXMAPS="no"; GENERIC_MENUS="no"
14 DEPENDS="gtk+"
15 BUILD_DEPENDS="gtk+-dev flex sdft intltool"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 # Binutils 2.22 break many packages build without LDFLAGS set correctly.
21 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries"
23 ./configure \
24 --disable-gtk3 \
25 --disable-quadmath \
26 $CONFIGURE_ARGS &&
27 make && make install
28 sdft $install/usr/share/applications/galculator.desktop -i -tf \
29 -a "Name[fr]=Calculatrice scientifique" \
30 -a "Name[pt]=Calculadora Científica" \
31 -a "Name[pt_BR]=Calculadora Científica" \
32 -a "Name[ru]=Инженерный калькулятор" \
33 -a "Name[zh_CN]=科学计算器" \
34 -a "Comment[ru]=Выполняйте простые и инженерные вычисления" \
35 -s "Icon=accessories-calculator" \
36 -s "Categories=Utility;Calculator;"
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr/share/icons/hicolor/48x48
44 cp -a $install/usr/bin $fs/usr
46 cp -a $install/usr/share/galculator $fs/usr/share
47 find $fs/usr/share/galculator -name '*gtk3*' -delete
48 sed -i 's|^[ ]*||g' $fs/usr/share/galculator/ui/*
50 cp -a $install/usr/share/icons/hicolor/48x48/apps $fs/usr/share/icons/hicolor/48x48
52 cp -a $install/usr/share/applications $fs/usr/share
53 }