wok rev 11897

libfm: Fix package
author Christophe Lincoln <pankso@slitaz.org>
date Wed Feb 29 15:56:09 2012 +0100 (2012-02-29)
parents cbf8c28eb1b6
children dd9aba13adcd
files libfm-dev/receipt libfm/receipt
line diff
     1.1 --- a/libfm-dev/receipt	Wed Feb 29 14:48:46 2012 +0100
     1.2 +++ b/libfm-dev/receipt	Wed Feb 29 15:56:09 2012 +0100
     1.3 @@ -11,9 +11,9 @@
     1.4  # Rules to gen a SliTaz package suitable for Tazpkg.
     1.5  genpkg_rules()
     1.6  {
     1.7 -	mkdir -p $fs/usr/lib/gio/modules
     1.8 -	cp -a $_pkg/usr/include $fs/usr
     1.9 -	cp -a $_pkg/usr/lib/pkgconfig $fs/usr/lib
    1.10 -	cp -a $_pkg/usr/lib/*a $fs/usr/lib
    1.11 -	cp -a $_pkg/usr/lib/gio/modules/*a $fs/usr/lib/gio/modules
    1.12 +	mkdir -p $fs/usr/lib
    1.13 +	cp -a $install/usr/include $fs/usr
    1.14 +	cp -a $install/usr/lib/pkgconfig $fs/usr/lib
    1.15 +	cp -a $install/usr/lib/*a $fs/usr/lib
    1.16 +	#cp -a $install/usr/lib/gio/modules/*a $fs/usr/lib/gio/modules
    1.17  }
     2.1 --- a/libfm/receipt	Wed Feb 29 14:48:46 2012 +0100
     2.2 +++ b/libfm/receipt	Wed Feb 29 15:56:09 2012 +0100
     2.3 @@ -5,39 +5,40 @@
     2.4  CATEGORY="system-tools"
     2.5  SHORT_DESC="File manager library from LXDE."
     2.6  MAINTAINER="pankso@slitaz.org"
     2.7 +TARBALL="$PACKAGE-$VERSION.tar.gz"
     2.8 +WEB_SITE="http://pcmanfm.sourceforge.net"
     2.9 +WGET_URL="$SF_MIRROR/pcmanfm/files/$TARBALL"
    2.10 +
    2.11  DEPENDS="glibc-base glib libgio util-linux-ng-uuid libxcb xcb-util expat \
    2.12  zlib fontconfig freetype gtk+ atk cairo pango pixman menu-cache"
    2.13  BUILD_DEPENDS="$DEPENDS gtk+-dev gamin-dev shared-mime-info intltool \
    2.14  hal-dev dbus-glib-dev dbus-dev startup-notification-dev libxcb-dev \
    2.15  xcb-util-dev menu-cache-dev expat-dev"
    2.16 -TARBALL="$PACKAGE-$VERSION.tar.gz"
    2.17 -WEB_SITE="http://pcmanfm.sourceforge.net"
    2.18 -WGET_URL="$SF_MIRROR/pcmanfm/files/$TARBALL"
    2.19  
    2.20  # Rules to configure and make the package.
    2.21  compile_rules()
    2.22  {
    2.23  	cd $src
    2.24 -	grep -rl gio/gdesktopappinfo.h . | xargs sed -i \
    2.25 -'s|.*gio/gdesktopappinfo.h.*|#ifdef G_DISABLE_DEPRECATED\n#undef G_DISABLE_DEPRECATED\n&\n#define G_DISABLE_DEPRECATED\n#else\n&\n#endif|'
    2.26 -	chmod +x install-sh
    2.27 +	#grep -rl gio/gdesktopappinfo.h . | xargs sed -i \
    2.28 +		#'s|.*gio/gdesktopappinfo.h.*|#ifdef G_DISABLE_DEPRECATED\n#undef G_DISABLE_DEPRECATED\n&\n#define G_DISABLE_DEPRECATED\n#else\n&\n#endif|'
    2.29 +	#chmod +x install-sh
    2.30  	./configure \
    2.31 -		--prefix=/usr \
    2.32 -		--mandir=/usr/share/man \
    2.33  		--sysconfdir=/etc \
    2.34  		$CONFIGURE_ARGS &&
    2.35 -	make &&
    2.36 -	make DESTDIR=$PWD/_pkg install
    2.37 +	make && make install
    2.38  }
    2.39  
    2.40  # Rules to gen a SliTaz package suitable for Tazpkg.
    2.41  genpkg_rules()
    2.42  {
    2.43 -	mkdir -p $fs/usr/lib/gio/modules
    2.44 -	cp -a $_pkg/etc $fs
    2.45 -	cp -a $_pkg/usr/bin $fs/usr
    2.46 -	cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
    2.47 -	cp -a $_pkg/usr/lib/gio/modules/*.so $fs/usr/lib/gio/modules
    2.48 +	mkdir -p $fs/usr/lib $fs/usr/share
    2.49 +	cp -a $install/etc $fs
    2.50 +	cp -a $install/usr/bin $fs/usr
    2.51 +	cp -a $install/usr/lib/*.so* $fs/usr/lib
    2.52 +	cp -a $install/usr/share/libfm $fs/usr/share
    2.53 +	cp -a $install/usr/share/mime $fs/usr/share
    2.54 +	cp -a $install/usr/share/applications $fs/usr/share
    2.55 +	#cp -a $install/usr/lib/gio/modules/*.so $fs/usr/lib/gio/modules
    2.56  }
    2.57  
    2.58  post_install()