wok-6.x annotate galculator/receipt @ rev 23373
updated perl-net-dns (0.66 -> 1.23)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Mar 31 13:47:04 2020 +0100 (2020-03-31) |
parents | 5e26ab6bd360 |
children | 5ea0ce1cecc0 |
rev | line source |
---|---|
pankso@518 | 1 # SliTaz package receipt. |
pankso@518 | 2 |
pankso@518 | 3 PACKAGE="galculator" |
Hans-G?nter@22789 | 4 VERSION="2.1.4" |
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" |
Hans-G?nter@22789 | 9 WEB_SITE="http://galculator.mnim.org/" |
Hans-G?nter@22789 | 10 |
pankso@518 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@22789 | 12 WGET_URL="https://github.com/$PACKAGE/$PACKAGE/archive/v$VERSION/$TARBALL" |
Hans-G?nter@22789 | 13 |
Hans-G?nter@22789 | 14 DEPENDS="gtk+" |
Hans-G?nter@22789 | 15 BUILD_DEPENDS="autoconf automake flex gtk+-dev libtool sdft" |
Hans-G?nter@22789 | 16 |
al@16925 | 17 GENERIC_PIXMAPS="no"; GENERIC_MENUS="no" |
pankso@518 | 18 |
Hans-G?nter@22789 | 19 HOST_ARCH="i486 arm" |
al@13718 | 20 |
pankso@518 | 21 # Rules to configure and make the package. |
pankso@518 | 22 compile_rules() |
pankso@518 | 23 { |
pascal@12787 | 24 # Binutils 2.22 break many packages build without LDFLAGS set correctly. |
pascal@17670 | 25 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries" |
al@16925 | 26 |
Hans-G?nter@22789 | 27 mkdir m4 |
Hans-G?nter@22789 | 28 ./autogen.sh \ |
Hans-G?nter@22789 | 29 --enable-gtk3=no \ |
Hans-G?nter@22789 | 30 --disable-quadmath \ |
al@16925 | 31 $CONFIGURE_ARGS && |
Hans-G?nter@22789 | 32 make && |
Hans-G?nter@22789 | 33 make install && |
pascal@17753 | 34 sdft $install/usr/share/applications/galculator.desktop -i -tf \ |
pascal@17753 | 35 -a "Name[fr]=Calculatrice scientifique" \ |
pascal@17753 | 36 -a "Name[pt]=Calculadora Científica" \ |
pascal@17753 | 37 -a "Name[pt_BR]=Calculadora Científica" \ |
pascal@17753 | 38 -a "Name[ru]=Инженерный калькулятор" \ |
pascal@17753 | 39 -a "Name[zh_CN]=科学计算器" \ |
pascal@17753 | 40 -a "Comment[ru]=Выполняйте простые и инженерные вычисления" \ |
al@18545 | 41 -s "Icon=accessories-calculator" \ |
pascal@17753 | 42 -s "Categories=Utility;Calculator;" |
pankso@518 | 43 } |
pankso@518 | 44 |
pankso@518 | 45 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@518 | 46 genpkg_rules() |
pankso@518 | 47 { |
al@16925 | 48 mkdir -p $fs/usr/share/icons/hicolor/48x48 |
al@16925 | 49 |
Hans-G?nter@22789 | 50 cp -a $install/usr/bin $fs/usr |
al@16925 | 51 |
Hans-G?nter@22789 | 52 cp -a $install/usr/share/galculator $fs/usr/share |
al@16925 | 53 find $fs/usr/share/galculator -name '*gtk3*' -delete |
al@16925 | 54 sed -i 's|^[ ]*||g' $fs/usr/share/galculator/ui/* |
al@16925 | 55 |
Hans-G?nter@22789 | 56 cp -a $install/usr/share/icons/hicolor/48x48/apps \ |
Hans-G?nter@22789 | 57 $fs/usr/share/icons/hicolor/48x48 |
al@16925 | 58 |
Hans-G?nter@22789 | 59 cp -a $install/usr/share/applications $fs/usr/share |
pankso@518 | 60 } |