wok view galculator/receipt @ rev 16965

linux-zram: use half of total memory as defaut value
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Thu Jul 31 21:59:15 2014 +0200 (2014-07-31)
parents f933b84b69df
children 17e313b5b9c1
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 HOST_ARCH="i486 arm"
13 GENERIC_PIXMAPS="no"; GENERIC_MENUS="no"
15 DEPENDS="gtk+"
16 BUILD_DEPENDS="gtk+-dev flex"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 # Binutils 2.22 break many packages build without LDFLAGS set correctly.
22 export LDFLAGS="-Wl,--copy-dt-needed-entries"
24 ./configure \
25 --disable-gtk3 \
26 --disable-quadmath \
27 $CONFIGURE_ARGS &&
28 make && make install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/share/icons/hicolor/48x48
36 cp -a $install/usr/bin $fs/usr
38 cp -a $install/usr/share/galculator $fs/usr/share
39 find $fs/usr/share/galculator -name '*gtk3*' -delete
40 sed -i 's|^[ ]*||g' $fs/usr/share/galculator/ui/*
42 cp -a $install/usr/share/icons/hicolor/48x48/apps $fs/usr/share/icons/hicolor/48x48
44 cp -a $install/usr/share/applications $fs/usr/share
45 sdft $fs/usr/share/applications/galculator.desktop -i -tf \
46 -a "Name[fr]=Calculatrice scientifique" \
47 -a "Name[pt]=Calculadora Científica" \
48 -a "Name[pt_BR]=Calculadora Científica" \
49 -a "Name[ru]=Инженерный калькулятор" \
50 -a "Name[zh_CN]=科学计算器" \
51 -a "Comment[ru]=Выполняйте простые и инженерные вычисления" \
52 -s "Categories=Utility;Calculator;"
53 }