wok-stable diff libfm/receipt @ rev 11697

Add R language
author Christophe Lincoln <pankso@slitaz.org>
date Sat Feb 18 18:00:53 2012 +0100 (2012-02-18)
parents
children cbf8c28eb1b6
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/libfm/receipt	Sat Feb 18 18:00:53 2012 +0100
     1.3 @@ -0,0 +1,48 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="libfm"
     1.7 +VERSION="0.1.14"
     1.8 +CATEGORY="system-tools"
     1.9 +SHORT_DESC="File manager library from LXDE."
    1.10 +MAINTAINER="pankso@slitaz.org"
    1.11 +DEPENDS="glibc-base glib libgio util-linux-ng-uuid libxcb xcb-util expat \
    1.12 +zlib fontconfig freetype gtk+ atk cairo pango pixman menu-cache"
    1.13 +BUILD_DEPENDS="$DEPENDS gtk+-dev gamin-dev shared-mime-info intltool \
    1.14 +hal-dev dbus-glib-dev dbus-dev startup-notification-dev libxcb-dev \
    1.15 +xcb-util-dev menu-cache-dev expat-dev"
    1.16 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.17 +WEB_SITE="http://pcmanfm.sourceforge.net"
    1.18 +WGET_URL="$SF_MIRROR/pcmanfm/files/$TARBALL"
    1.19 +
    1.20 +# Rules to configure and make the package.
    1.21 +compile_rules()
    1.22 +{
    1.23 +	cd $src
    1.24 +	grep -rl gio/gdesktopappinfo.h . | xargs sed -i \
    1.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|'
    1.26 +	chmod +x install-sh
    1.27 +	./configure \
    1.28 +		--prefix=/usr \
    1.29 +		--mandir=/usr/share/man \
    1.30 +		--sysconfdir=/etc \
    1.31 +		$CONFIGURE_ARGS &&
    1.32 +	make &&
    1.33 +	make DESTDIR=$PWD/_pkg install
    1.34 +}
    1.35 +
    1.36 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.37 +genpkg_rules()
    1.38 +{
    1.39 +	mkdir -p $fs/usr/lib/gio/modules
    1.40 +	cp -a $_pkg/etc $fs
    1.41 +	cp -a $_pkg/usr/bin $fs/usr
    1.42 +	cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
    1.43 +	cp -a $_pkg/usr/lib/gio/modules/*.so $fs/usr/lib/gio/modules
    1.44 +}
    1.45 +
    1.46 +post_install()
    1.47 +{
    1.48 +	# update mime-cache
    1.49 +	echo "Updating mime-types database"
    1.50 +	update-mime-database $1/usr/share/mime
    1.51 +}