wok annotate galculator/receipt @ rev 17848

Add: monkey-1.5.6
author necrophcodr <necrophcodr@necrophcodr.me>
date Tue Mar 24 15:46:17 2015 +0000 (2015-03-24)
parents 17e313b5b9c1
children 5e26ab6bd360
rev   line source
pankso@518 1 # SliTaz package receipt.
pankso@518 2
pankso@518 3 PACKAGE="galculator"
devl547@16199 4 VERSION="2.1.3"
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"
al@13718 9 WEB_SITE="http://galculator.sourceforge.net/"
pankso@518 10 TARBALL="$PACKAGE-$VERSION.tar.gz"
pankso@518 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
pankso@16282 12 HOST_ARCH="i486 arm"
al@16925 13 GENERIC_PIXMAPS="no"; GENERIC_MENUS="no"
pankso@518 14
al@13718 15 DEPENDS="gtk+"
pascal@17753 16 BUILD_DEPENDS="gtk+-dev flex sdft"
al@13718 17
pankso@518 18 # Rules to configure and make the package.
pankso@518 19 compile_rules()
pankso@518 20 {
pascal@12787 21 # Binutils 2.22 break many packages build without LDFLAGS set correctly.
pascal@17670 22 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries"
al@16925 23
al@16925 24 ./configure \
al@16925 25 --disable-gtk3 \
al@16925 26 --disable-quadmath \
al@16925 27 $CONFIGURE_ARGS &&
al@16925 28 make && make install
pascal@17753 29 sdft $install/usr/share/applications/galculator.desktop -i -tf \
pascal@17753 30 -a "Name[fr]=Calculatrice scientifique" \
pascal@17753 31 -a "Name[pt]=Calculadora Científica" \
pascal@17753 32 -a "Name[pt_BR]=Calculadora Científica" \
pascal@17753 33 -a "Name[ru]=Инженерный калькулятор" \
pascal@17753 34 -a "Name[zh_CN]=科学计算器" \
pascal@17753 35 -a "Comment[ru]=Выполняйте простые и инженерные вычисления" \
pascal@17753 36 -s "Categories=Utility;Calculator;"
pankso@518 37 }
pankso@518 38
pankso@518 39 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@518 40 genpkg_rules()
pankso@518 41 {
al@16925 42 mkdir -p $fs/usr/share/icons/hicolor/48x48
al@16925 43
al@13718 44 cp -a $install/usr/bin $fs/usr
al@16925 45
al@16925 46 cp -a $install/usr/share/galculator $fs/usr/share
al@16925 47 find $fs/usr/share/galculator -name '*gtk3*' -delete
al@16925 48 sed -i 's|^[ ]*||g' $fs/usr/share/galculator/ui/*
al@16925 49
al@16925 50 cp -a $install/usr/share/icons/hicolor/48x48/apps $fs/usr/share/icons/hicolor/48x48
al@16925 51
al@16925 52 cp -a $install/usr/share/applications $fs/usr/share
pankso@518 53 }