# HG changeset patch # User Aleksej Bobylev # Date 1405623739 -10800 # Node ID 81c2bf22f7bbfb65d4a53f46759395b299e4987b # Parent 75787a6842b8c6d588c6db4aba522baa97e661bf galculator: remove patch and .desktop stuff file. First use of 'sdft' for .desktop file editing. diff -r 75787a6842b8 -r 81c2bf22f7bb galculator/receipt --- a/galculator/receipt Thu Jul 17 21:20:25 2014 +0300 +++ b/galculator/receipt Thu Jul 17 22:02:19 2014 +0300 @@ -10,25 +10,44 @@ TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" HOST_ARCH="i486 arm" +GENERIC_PIXMAPS="no"; GENERIC_MENUS="no" DEPENDS="gtk+" -BUILD_DEPENDS="gtk+-dev" +BUILD_DEPENDS="gtk+-dev flex" # Rules to configure and make the package. compile_rules() { - patch < $stuff/galculator-2.0.1-gtk2.patch - # Binutils 2.22 break many packages build without LDFLAGS set correctly. export LDFLAGS="-Wl,--copy-dt-needed-entries" - ./configure --disable-quadmath \ - $CONFIGURE_ARGS && make && make install + + ./configure \ + --disable-gtk3 \ + --disable-quadmath \ + $CONFIGURE_ARGS && + make && make install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - mkdir -p $fs/usr/share + mkdir -p $fs/usr/share/icons/hicolor/48x48 + cp -a $install/usr/bin $fs/usr - cp -a $install/usr/share/$PACKAGE $fs/usr/share + + cp -a $install/usr/share/galculator $fs/usr/share + find $fs/usr/share/galculator -name '*gtk3*' -delete + sed -i 's|^[ ]*||g' $fs/usr/share/galculator/ui/* + + cp -a $install/usr/share/icons/hicolor/48x48/apps $fs/usr/share/icons/hicolor/48x48 + + cp -a $install/usr/share/applications $fs/usr/share + sdft $fs/usr/share/applications/galculator.desktop -i -tf \ + -a "Name[fr]=Calculatrice scientifique" \ + -a "Name[pt]=Calculadora Científica" \ + -a "Name[pt_BR]=Calculadora Científica" \ + -a "Name[ru]=Инженерный калькулятор" \ + -a "Name[zh_CN]=科学计算器" \ + -a "Comment[ru]=Выполняйте простые и инженерные вычисления" \ + -s "Categories=Utility;Calculator;" } diff -r 75787a6842b8 -r 81c2bf22f7bb galculator/stuff/galculator-2.0.1-gtk2.patch --- a/galculator/stuff/galculator-2.0.1-gtk2.patch Thu Jul 17 21:20:25 2014 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,31 +0,0 @@ ---- configure -+++ configure -@@ -808,7 +808,6 @@ - enable_maintainer_mode - enable_dependency_tracking - enable_nls --enable_gtk3 - enable_shared - enable_static - with_pic -@@ -4798,20 +4797,7 @@ - fi - - --# Check whether --enable-gtk3 was given. --if test "${enable_gtk3+set}" = set; then : -- enableval=$enable_gtk3; enable_gtk3="${enableval}" --else -- enable_gtk3="yes" -- --fi -- -- --if test x"$enable_gtk3" = x"yes"; then -- pkg_modules="gtk+-3.0" --else - pkg_modules="gtk+-2.0 >= 2.16.0" --fi - - - diff -r 75787a6842b8 -r 81c2bf22f7bb galculator/stuff/galculator.desktop --- a/galculator/stuff/galculator.desktop Thu Jul 17 21:20:25 2014 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,24 +0,0 @@ -[Desktop Entry] -Type=Application -Name=Galculator -Name[fr]=Calculatrice scientifique -Name[pt]=Calculadora Científica -Name[pt_BR]=Calculadora Científica -Name[ru]=Инженерный калькулятор -Name[zh_CN]=科学计算器 -Comment=Perform simple and scientific calculations -Comment[da_DK]=Udfør simple og videnskabelige bereginiger -Comment[de]=Ausführen von einfachen und wissenschaftlichen Berechnungen -Comment[ja]=単純な科学計算を実行します -Comment[kk_KZ]=Қарапайым және инженерлік санауларға арналған -Comment[pl]=Wykonaj proste lub naukowe obliczenia -Comment[pt]=Executa cálculos simples e científicos -Comment[pt_BR]=Executa cálculos simples e científicos -Comment[ru]=Выполняйте простые и инженерные вычисления -Comment[sk]=Kalkulačka na jednoduché i vedecké výpočty -Comment[sv]=Genomför enkla och vetenskapliga beräkningar -Comment[zh_TW]=進行簡單和科學的計算 -Exec=galculator -Icon=galculator -Categories=Utility;Calculator; -StartupNotify=true