wok rev 16925

galculator: remove patch and .desktop stuff file. First use of 'sdft' for .desktop file editing.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Jul 17 22:02:19 2014 +0300 (2014-07-17)
parents 75787a6842b8
children 94f10bc17a2c
files galculator/receipt galculator/stuff/galculator-2.0.1-gtk2.patch galculator/stuff/galculator.desktop
line diff
     1.1 --- a/galculator/receipt	Thu Jul 17 21:20:25 2014 +0300
     1.2 +++ b/galculator/receipt	Thu Jul 17 22:02:19 2014 +0300
     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  }
     2.1 --- a/galculator/stuff/galculator-2.0.1-gtk2.patch	Thu Jul 17 21:20:25 2014 +0300
     2.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.3 @@ -1,31 +0,0 @@
     2.4 ---- configure
     2.5 -+++ configure
     2.6 -@@ -808,7 +808,6 @@
     2.7 - enable_maintainer_mode
     2.8 - enable_dependency_tracking
     2.9 - enable_nls
    2.10 --enable_gtk3
    2.11 - enable_shared
    2.12 - enable_static
    2.13 - with_pic
    2.14 -@@ -4798,20 +4797,7 @@
    2.15 - fi
    2.16 - 
    2.17 - 
    2.18 --# Check whether --enable-gtk3 was given.
    2.19 --if test "${enable_gtk3+set}" = set; then :
    2.20 --  enableval=$enable_gtk3; enable_gtk3="${enableval}"
    2.21 --else
    2.22 --  enable_gtk3="yes"
    2.23 --
    2.24 --fi
    2.25 --
    2.26 --
    2.27 --if test x"$enable_gtk3" = x"yes"; then
    2.28 --    pkg_modules="gtk+-3.0"
    2.29 --else
    2.30 -     pkg_modules="gtk+-2.0 >= 2.16.0"
    2.31 --fi
    2.32 - 
    2.33 - 
    2.34 - 
     3.1 --- a/galculator/stuff/galculator.desktop	Thu Jul 17 21:20:25 2014 +0300
     3.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.3 @@ -1,24 +0,0 @@
     3.4 -[Desktop Entry]
     3.5 -Type=Application
     3.6 -Name=Galculator
     3.7 -Name[fr]=Calculatrice scientifique
     3.8 -Name[pt]=Calculadora Científica
     3.9 -Name[pt_BR]=Calculadora Científica
    3.10 -Name[ru]=Инженерный калькулятор
    3.11 -Name[zh_CN]=科学计算器
    3.12 -Comment=Perform simple and scientific calculations
    3.13 -Comment[da_DK]=Udfør simple og videnskabelige bereginiger
    3.14 -Comment[de]=Ausführen von einfachen und wissenschaftlichen Berechnungen
    3.15 -Comment[ja]=単純な科学計算を実行します
    3.16 -Comment[kk_KZ]=Қарапайым және инженерлік санауларға арналған
    3.17 -Comment[pl]=Wykonaj proste lub naukowe obliczenia
    3.18 -Comment[pt]=Executa cálculos simples e científicos
    3.19 -Comment[pt_BR]=Executa cálculos simples e científicos
    3.20 -Comment[ru]=Выполняйте простые и инженерные вычисления
    3.21 -Comment[sk]=Kalkulačka na jednoduché i vedecké výpočty
    3.22 -Comment[sv]=Genomför enkla och vetenskapliga beräkningar
    3.23 -Comment[zh_TW]=進行簡單和科學的計算
    3.24 -Exec=galculator
    3.25 -Icon=galculator
    3.26 -Categories=Utility;Calculator;
    3.27 -StartupNotify=true