wok diff galculator/receipt @ rev 17277

linux64-*: update src var (for list_modules.sh)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Oct 25 17:44:24 2014 +0200 (2014-10-25)
parents f933b84b69df
children 17e313b5b9c1
line diff
     1.1 --- a/galculator/receipt	Fri May 02 23:27:09 2014 +0000
     1.2 +++ b/galculator/receipt	Sat Oct 25 17:44:24 2014 +0200
     1.3 @@ -10,25 +10,44 @@
     1.4  TARBALL="$PACKAGE-$VERSION.tar.gz"
     1.5  WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
     1.6  HOST_ARCH="i486 arm"
     1.7 +GENERIC_PIXMAPS="no"; GENERIC_MENUS="no"
     1.8  
     1.9  DEPENDS="gtk+"
    1.10 -BUILD_DEPENDS="gtk+-dev"
    1.11 +BUILD_DEPENDS="gtk+-dev flex"
    1.12  
    1.13  # Rules to configure and make the package.
    1.14  compile_rules()
    1.15  {
    1.16 -	patch < $stuff/galculator-2.0.1-gtk2.patch
    1.17 -
    1.18  	# Binutils 2.22 break many packages build without LDFLAGS set correctly.
    1.19  	export LDFLAGS="-Wl,--copy-dt-needed-entries"
    1.20 -	./configure --disable-quadmath \
    1.21 -	$CONFIGURE_ARGS && make && make install
    1.22 +
    1.23 +	./configure \
    1.24 +		--disable-gtk3 \
    1.25 +		--disable-quadmath \
    1.26 +		$CONFIGURE_ARGS &&
    1.27 +	make && make install
    1.28  }
    1.29  
    1.30  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.31  genpkg_rules()
    1.32  {
    1.33 -	mkdir -p $fs/usr/share
    1.34 +	mkdir -p $fs/usr/share/icons/hicolor/48x48
    1.35 +
    1.36  	cp -a $install/usr/bin $fs/usr
    1.37 -	cp -a $install/usr/share/$PACKAGE $fs/usr/share
    1.38 +
    1.39 +	cp -a $install/usr/share/galculator $fs/usr/share
    1.40 +	find $fs/usr/share/galculator -name '*gtk3*' -delete
    1.41 +	sed -i 's|^[ ]*||g' $fs/usr/share/galculator/ui/*
    1.42 +
    1.43 +	cp -a $install/usr/share/icons/hicolor/48x48/apps $fs/usr/share/icons/hicolor/48x48
    1.44 +
    1.45 +	cp -a $install/usr/share/applications $fs/usr/share
    1.46 +	sdft $fs/usr/share/applications/galculator.desktop -i -tf \
    1.47 +		-a "Name[fr]=Calculatrice scientifique" \
    1.48 +		-a "Name[pt]=Calculadora Científica" \
    1.49 +		-a "Name[pt_BR]=Calculadora Científica" \
    1.50 +		-a "Name[ru]=Инженерный калькулятор" \
    1.51 +		-a "Name[zh_CN]=科学计算器" \
    1.52 +		-a "Comment[ru]=Выполняйте простые и инженерные вычисления" \
    1.53 +		-s "Categories=Utility;Calculator;"
    1.54  }