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