wok annotate libfm/receipt @ rev 16276
Up libfm/pcmanfm and aff to ARM arch
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat Apr 05 23:47:33 2014 +0200 (2014-04-05) |
parents | 6aa2abac7209 |
children | c46591bcff38 |
rev | line source |
---|---|
pascal@11205 | 1 # SliTaz package receipt. |
pascal@11205 | 2 |
pascal@11205 | 3 PACKAGE="libfm" |
pankso@16276 | 4 VERSION="1.2.0" |
pascal@11205 | 5 CATEGORY="system-tools" |
pascal@11205 | 6 SHORT_DESC="File manager library from LXDE." |
pascal@11205 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@14714 | 8 LICENSE="GPL2" |
pankso@15750 | 9 TARBALL="$PACKAGE-$VERSION.tar.xz" |
pankso@11897 | 10 WEB_SITE="http://pcmanfm.sourceforge.net" |
pankso@11897 | 11 WGET_URL="$SF_MIRROR/pcmanfm/files/$TARBALL" |
pankso@16276 | 12 HOST_ARCH="i486 arm" |
pankso@11897 | 13 |
pankso@12481 | 14 DEPENDS="glibc-base glib libgio util-linux-uuid libxcb xcb-util expat \ |
pascal@11205 | 15 zlib fontconfig freetype gtk+ atk cairo pango pixman menu-cache" |
pankso@16276 | 16 BUILD_DEPENDS="gtk+-dev dbus-glib-dev dbus-dev startup-notification-dev \ |
pankso@16276 | 17 libxcb-dev xcb-util-dev menu-cache-dev expat-dev libgio-dev" |
pankso@16276 | 18 |
pankso@16276 | 19 # hand SliTaz arch and cross compilation |
pankso@16276 | 20 case "$SLITAZ_ARCH" in |
pankso@16276 | 21 i?86) DEPENDS="$DEPENDS gamin shared-mime-info" |
pankso@16276 | 22 esac |
pankso@16276 | 23 |
pankso@16276 | 24 case "$ARCH" in |
pankso@16276 | 25 i?86) BUILD_DEPENDS="$BUILD_DEPENDS shared-mime-info-dev intltool \ |
pankso@16276 | 26 gamin-dev vala" |
pankso@16276 | 27 esac |
pascal@11205 | 28 |
pascal@11205 | 29 # Rules to configure and make the package. |
pascal@11205 | 30 compile_rules() |
pascal@11205 | 31 { |
pascal@11205 | 32 cd $src |
pascal@11205 | 33 ./configure \ |
pascal@11205 | 34 --sysconfdir=/etc \ |
pascal@11205 | 35 $CONFIGURE_ARGS && |
pankso@11897 | 36 make && make install |
pascal@11205 | 37 } |
pascal@11205 | 38 |
pascal@11205 | 39 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@11205 | 40 genpkg_rules() |
pascal@11205 | 41 { |
pankso@11897 | 42 mkdir -p $fs/usr/lib $fs/usr/share |
pankso@11897 | 43 cp -a $install/etc $fs |
pankso@11897 | 44 cp -a $install/usr/bin $fs/usr |
pankso@11897 | 45 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pankso@11897 | 46 cp -a $install/usr/share/libfm $fs/usr/share |
pankso@11897 | 47 cp -a $install/usr/share/mime $fs/usr/share |
pankso@11897 | 48 cp -a $install/usr/share/applications $fs/usr/share |
pascal@11205 | 49 } |
pascal@11205 | 50 |
pascal@11205 | 51 post_install() |
pascal@11205 | 52 { |
pascal@11205 | 53 # update mime-cache |
pascal@11205 | 54 echo "Updating mime-types database" |
pascal@12196 | 55 chroot "$1/" /usr/bin/update-mime-database /usr/share/mime |
pascal@11205 | 56 } |