wok-next annotate gnome-calculator/receipt @ rev 18291

Up slitaz-boot-scripts (409)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Aug 15 09:24:54 2015 +0200 (2015-08-15)
parents 7d4e36ba1ddd
children 9e01bc6321ea
rev   line source
yuripourre@16826 1 # SliTaz package receipt.
yuripourre@16826 2
yuripourre@16826 3 PACKAGE="gnome-calculator"
yuripourre@16826 4 VERSION="3.10.2"
yuripourre@16826 5 CATEGORY="utilities"
yuripourre@16826 6 LICENSE="GPL3"
yuripourre@16826 7 SHORT_DESC="GNOME Calculator is a powerful graphical calculator with financial, logical and scientific modes."
yuripourre@16826 8 MAINTAINER="yuripourre@gmail.com"
yuripourre@16826 9 TARBALL="$PACKAGE-$VERSION.tar.xz"
yuripourre@16826 10 WEB_SITE="https://wiki.gnome.org/Apps/Calculator"
yuripourre@16826 11 WGET_URL="http://ftp.gnome.org/pub/gnome/sources/$PACKAGE/${VERSION%.*}/$TARBALL"
yuripourre@16826 12
yuripourre@16826 13 DEPENDS="gtk+3 glib"
al@17073 14 BUILD_DEPENDS="gtk+3-dev glib-dev itstool yelp-xsl vala"
yuripourre@16826 15
al@17072 16 L10N_MO="af am ar as ast az be@latin be bg bn_IN bn bs ca ca@valencia cs cy da \
al@17072 17 de dz el en_CA en_GB en@shaw en_US eo es et eu fa fi fr ga gl gu he hi hr hu \
al@17072 18 hy id it ja ka kk km kn ko ku lt lv mai mg mk ml mn mr ms my nb ne nl nn oc or \
al@17072 19 pa pl pt_BR pt ro ru rw si sk sl sq sr@latin sr sv ta te tg th tk tr ug uk vi \
al@17072 20 xh zh_CN zh_HK zh_TW"
al@17072 21
yuripourre@16826 22 # Rules to configure and make the package.
yuripourre@16826 23 compile_rules()
yuripourre@16826 24 {
al@17072 25 # SliTaz icon theme has no symbolic icons
al@17072 26 sed -i 's|-symbolic||g' $src/data/buttons*.ui
al@17072 27
yuripourre@16826 28 ./configure \
yuripourre@16826 29 --prefix=/usr \
yuripourre@16826 30 $CONFIGURE_ARGS &&
yuripourre@16826 31 make &&
yuripourre@16826 32 make DESTDIR=$DESTDIR install
yuripourre@16826 33 }
yuripourre@16826 34
yuripourre@16826 35 genpkg_rules()
yuripourre@16826 36 {
yuripourre@16826 37 cp -a $install/usr $fs
al@17072 38 rm -rf $fs/usr/share/locale
yuripourre@16826 39 }
al@17072 40
al@17072 41 post_install()
al@17072 42 {
al@17072 43 echo "Processing post-install commands..."
al@17072 44 chroot $1/ /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas
al@17072 45 }
al@17072 46
al@17072 47 post_remove()
al@17072 48 {
al@17072 49 echo "Processing post-remove commands..."
al@17072 50 chroot $1/ /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas
al@17072 51 }