wok diff gucharmap3/receipt @ rev 20017

Up reaver (1.6.1) again
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Aug 11 16:57:23 2017 +0200 (2017-08-11)
parents
children 984cad69029c
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/gucharmap3/receipt	Fri Aug 11 16:57:23 2017 +0200
     1.3 @@ -0,0 +1,47 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="gucharmap3"
     1.7 +VERSION="3.18.2"
     1.8 +CATEGORY="utilities"
     1.9 +SHORT_DESC="GNOME Character Map (GTK+3)"
    1.10 +MAINTAINER="al.bobylev@gmail.com"
    1.11 +LICENSE="GPL3"
    1.12 +TARBALL="gucharmap-$VERSION.tar.xz"
    1.13 +WEB_SITE="https://wiki.gnome.org/action/show/Apps/Gucharmap"
    1.14 +WGET_URL="$GNOME_MIRROR/gucharmap/${VERSION%.*}/$TARBALL"
    1.15 +
    1.16 +DEPENDS="gtk+3 xorg-libXdamage"
    1.17 +BUILD_DEPENDS="automake gtk-doc libtool  itstool libxml2-tools glib-dev \
    1.18 +libgio-dev gtk+3-dev desktop-file-utils-extra gobject-introspection-dev vala"
    1.19 +SPLIT="gucharmap3-i18n"
    1.20 +
    1.21 +# Rules to configure and make the package.
    1.22 +compile_rules()
    1.23 +{
    1.24 +	# Idea is to have two nonintersecting packages:
    1.25 +	# gucharmap (for GTK+2) and gucharmap3 (for GTK+3)
    1.26 +	sed -i '/AC_INIT/s|gucharmap|&3|3; s|GETTEXT_PACKAGE=.*$|&3|' \
    1.27 +		$src/configure.ac
    1.28 +	# Disable stuff we never had
    1.29 +	sed -i '/GNOME_DEBUG_CHECK/d; /YELP/d' $src/configure.ac
    1.30 +	sed -i '/YELP/d' $src/help/Makefile.am
    1.31 +
    1.32 +	./autogen.sh --program-suffix=3
    1.33 +	make && make install
    1.34 +
    1.35 +	find $install/usr/bin -type l -delete
    1.36 +	mv  $install/usr/share/applications/gucharmap.desktop \
    1.37 +		$install/usr/share/applications/gucharmap3.desktop
    1.38 +	sed -i 's|Exec=gucharmap|&3|' \
    1.39 +		$install/usr/share/applications/gucharmap3.desktop
    1.40 +}
    1.41 +
    1.42 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.43 +genpkg_rules()
    1.44 +{
    1.45 +	mkdir -p $fs/usr/lib $fs/usr/share/applications
    1.46 +	cp -a $install/usr/bin $fs/usr
    1.47 +	cp -a $install/usr/lib/*.so* $fs/usr/lib
    1.48 +	cp -a $install/usr/share/applications $fs/usr/share
    1.49 +	cp -a $install/usr/share/glib-2.0 $fs/usr/share
    1.50 +}