wok annotate libfm/receipt @ rev 12805

Add libzip
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 19 12:58:09 2012 +0200 (2012-05-19)
parents 0a6b5118575a
children 42fe21299957
rev   line source
pascal@11205 1 # SliTaz package receipt.
pascal@11205 2
pascal@11205 3 PACKAGE="libfm"
pankso@11896 4 VERSION="0.1.17"
pascal@11205 5 CATEGORY="system-tools"
pascal@11205 6 SHORT_DESC="File manager library from LXDE."
pascal@11205 7 MAINTAINER="pankso@slitaz.org"
pankso@11897 8 TARBALL="$PACKAGE-$VERSION.tar.gz"
pankso@11897 9 WEB_SITE="http://pcmanfm.sourceforge.net"
pankso@11897 10 WGET_URL="$SF_MIRROR/pcmanfm/files/$TARBALL"
pankso@11897 11
pankso@12481 12 DEPENDS="glibc-base glib libgio util-linux-uuid libxcb xcb-util expat \
pascal@11205 13 zlib fontconfig freetype gtk+ atk cairo pango pixman menu-cache"
pascal@11205 14 BUILD_DEPENDS="$DEPENDS gtk+-dev gamin-dev shared-mime-info intltool \
pascal@11205 15 hal-dev dbus-glib-dev dbus-dev startup-notification-dev libxcb-dev \
pascal@11205 16 xcb-util-dev menu-cache-dev expat-dev"
pascal@11205 17
pascal@11205 18 # Rules to configure and make the package.
pascal@11205 19 compile_rules()
pascal@11205 20 {
pascal@11205 21 cd $src
pankso@11897 22 #grep -rl gio/gdesktopappinfo.h . | xargs sed -i \
pankso@11897 23 #'s|.*gio/gdesktopappinfo.h.*|#ifdef G_DISABLE_DEPRECATED\n#undef G_DISABLE_DEPRECATED\n&\n#define G_DISABLE_DEPRECATED\n#else\n&\n#endif|'
pankso@11897 24 #chmod +x install-sh
pascal@11205 25 ./configure \
pascal@11205 26 --sysconfdir=/etc \
pascal@11205 27 $CONFIGURE_ARGS &&
pankso@11897 28 make && make install
pascal@11205 29 }
pascal@11205 30
pascal@11205 31 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@11205 32 genpkg_rules()
pascal@11205 33 {
pankso@11897 34 mkdir -p $fs/usr/lib $fs/usr/share
pankso@11897 35 cp -a $install/etc $fs
pankso@11897 36 cp -a $install/usr/bin $fs/usr
pankso@11897 37 cp -a $install/usr/lib/*.so* $fs/usr/lib
pankso@11897 38 cp -a $install/usr/share/libfm $fs/usr/share
pankso@11897 39 cp -a $install/usr/share/mime $fs/usr/share
pankso@11897 40 cp -a $install/usr/share/applications $fs/usr/share
pankso@11897 41 #cp -a $install/usr/lib/gio/modules/*.so $fs/usr/lib/gio/modules
pascal@11205 42 }
pascal@11205 43
pascal@11205 44 post_install()
pascal@11205 45 {
pascal@11205 46 # update mime-cache
pascal@11205 47 echo "Updating mime-types database"
pascal@12196 48 chroot "$1/" /usr/bin/update-mime-database /usr/share/mime
pascal@11205 49 }