wok-next view galculator/receipt @ rev 20827
new tor: 0.3.3.7
author | Erkan Yilmaz <erkan@slitaz.org> |
---|---|
date | Thu Jun 14 10:13:14 2018 +0000 (2018-06-14) |
parents | c4e53a39395a |
children | 551851c90944 |
line source
1 # SliTaz package receipt v2.
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/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 BUILD_DEPENDS="gtk+-dev flex sdft intltool"
16 COOKOPTS="!pixmaps !menus"
18 compile_rules() {
19 # Binutils 2.22 break many packages build without LDFLAGS set correctly.
20 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries"
22 ./configure \
23 --disable-gtk3 \
24 --disable-quadmath \
25 $CONFIGURE_ARGS &&
26 fix libtool &&
27 make &&
28 make install || return 1
30 sdft $install/usr/share/applications/galculator.desktop -i -tf \
31 -a "Name[fr]=Calculatrice scientifique" \
32 -a "Name[pt]=Calculadora Científica" \
33 -a "Name[pt_BR]=Calculadora Científica" \
34 -a "Name[ru]=Инженерный калькулятор" \
35 -a "Name[zh_CN]=科学计算器" \
36 -a "Comment[ru]=Выполняйте простые и инженерные вычисления" \
37 -s "Icon=accessories-calculator" \
38 -s "Categories=Utility;Calculator;"
39 }
41 genpkg_rules() {
42 copy @std
43 rm -r $fs/usr/share/pixmaps
44 find $fs -name '*gtk3*' -delete
45 sed -i 's|^[ ]*||g' $fs/usr/share/galculator/ui/*
46 DEPENDS="gtk+"
47 }