wok-next diff ibus/receipt @ rev 20526

Up mtpaint (3.49.13)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Mar 23 17:51:29 2018 +0200 (2018-03-23)
parents 16df76e1fc6a
children e545e47edffa
line diff
     1.1 --- a/ibus/receipt	Fri May 22 17:34:18 2015 +0300
     1.2 +++ b/ibus/receipt	Fri Mar 23 17:51:29 2018 +0200
     1.3 @@ -1,4 +1,4 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="ibus"
     1.8  VERSION="1.4.2"
     1.9 @@ -7,16 +7,15 @@
    1.10  MAINTAINER="pascal.bellard@slitaz.org"
    1.11  LICENSE="LGPL2.1"
    1.12  WEB_SITE="http://code.google.com/p/ibus/"
    1.13 +
    1.14  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.15  WGET_URL="http://ibus.googlecode.com/files/$TARBALL"
    1.16  
    1.17 -DEPENDS="gtk+"
    1.18  BUILD_DEPENDS="gtk+-dev GConf-dev python-dev dbus-python-dev dbus-glib-dev \
    1.19  intltool gettext perl iso-codes"
    1.20 +SPLIT="ibus-dev"
    1.21  
    1.22 -# Rules to configure and make the package.
    1.23 -compile_rules()
    1.24 -{
    1.25 +compile_rules() {
    1.26  	mkdir -p $DESTDIR$(ls -d /usr/lib/gtk-2*/2*/immodules/)
    1.27  	./configure --prefix=/usr \
    1.28  		--mandir=/usr/share/man \
    1.29 @@ -26,13 +25,22 @@
    1.30  	make && make DESTDIR=$DESTDIR install
    1.31  }
    1.32  
    1.33 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.34 -genpkg_rules()
    1.35 -{
    1.36 -	cp -a $src/client/gtk2/im-ibus.la $install/usr/lib/gtk-2*/2*/immodules/
    1.37 -	cp -a $install/* $fs
    1.38 -	rm -rf $fs/usr/include
    1.39 -	rm -rf $fs/usr/lib/pkgconfig
    1.40 -	rm -rf $fs/usr/share/gtk-doc
    1.41 -	find $fs/usr/lib | grep 'a$' | xargs rm -f
    1.42 +genpkg_rules() {
    1.43 +	case $PACKAGE in
    1.44 +		ibus)
    1.45 +			cp -a $src/client/gtk2/im-ibus.la $install/usr/lib/gtk-2*/2*/immodules/
    1.46 +			cp -a $install/* $fs
    1.47 +			rm -rf $fs/usr/include
    1.48 +			rm -rf $fs/usr/lib/pkgconfig
    1.49 +			rm -rf $fs/usr/share/gtk-doc
    1.50 +			find $fs/usr/lib | grep 'a$' | xargs rm -f
    1.51 +			DEPENDS="gtk+"
    1.52 +			;;
    1.53 +		*-dev)
    1.54 +			mkdir -p $fs/usr/lib
    1.55 +			cp -a $install/usr/include $fs/usr
    1.56 +			cp -a $install/usr/lib $fs/usr
    1.57 +			find $install/usr/lib | grep '\.so' | xargs rm -f
    1.58 +			;;
    1.59 +	esac
    1.60  }