wok rev 17072

gnome-calculator: compile glib schemes, fix absent icons, remove translations.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Aug 22 21:11:03 2014 +0000 (2014-08-22)
parents 7e9bfc819c6c
children c8fa472f72a3
files gnome-calculator/receipt
line diff
     1.1 --- a/gnome-calculator/receipt	Fri Aug 22 18:46:29 2014 +0200
     1.2 +++ b/gnome-calculator/receipt	Fri Aug 22 21:11:03 2014 +0000
     1.3 @@ -13,9 +13,18 @@
     1.4  DEPENDS="gtk+3 glib"
     1.5  BUILD_DEPENDS="gtk+3-dev glib-dev itstool yelp-xsl"
     1.6  
     1.7 +L10N_MO="af am ar as ast az be@latin be bg bn_IN bn bs ca ca@valencia cs cy da \
     1.8 +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 \
     1.9 +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 \
    1.10 +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 \
    1.11 +xh zh_CN zh_HK zh_TW"
    1.12 +
    1.13  # Rules to configure and make the package.
    1.14  compile_rules()
    1.15  {
    1.16 +	# SliTaz icon theme has no symbolic icons
    1.17 +	sed -i 's|-symbolic||g' $src/data/buttons*.ui
    1.18 +
    1.19  	./configure \
    1.20  		--prefix=/usr \
    1.21  		$CONFIGURE_ARGS &&
    1.22 @@ -26,4 +35,17 @@
    1.23  genpkg_rules()
    1.24  {
    1.25  	cp -a $install/usr $fs
    1.26 +	rm -rf $fs/usr/share/locale
    1.27  }
    1.28 +
    1.29 +post_install()
    1.30 +{
    1.31 +	echo "Processing post-install commands..."
    1.32 +	chroot $1/ /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas
    1.33 +}
    1.34 +
    1.35 +post_remove()
    1.36 +{
    1.37 +	echo "Processing post-remove commands..."
    1.38 +	chroot $1/ /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas
    1.39 +}