wok view libfm/receipt @ rev 18497

libfm: define tar.xz for xarchiver
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Sun Oct 11 13:59:02 2015 +0200 (2015-10-11)
parents d2af45554821
children 9f85bdbb50bf
line source
1 # SliTaz package receipt.
3 PACKAGE="libfm"
4 VERSION="7daeaf3"
5 CATEGORY="system-tools"
6 SHORT_DESC="File management support (core library)"
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 WGET_URL="http://git.lxde.org/gitweb/?p=lxde/libfm.git;a=snapshot;h=$VERSION;sf=txz"
13 HOST_ARCH="i486 arm"
14 GENERIC_MENUS="no"
16 SUGGESTED="gvfs"
17 DEPENDS="glib glibc-base libffi libgio menu-cache pcre zlib"
18 BUILD_DEPENDS="gtk+-dev dbus-glib-dev dbus-dev startup-notification-dev \
19 libxcb-dev xcb-util-dev menu-cache-dev expat-dev libgio-dev \
20 shared-mime-info-dev gtk-doc libtool"
22 case "$ARCH" in
23 i?86) BUILD_DEPENDS="$BUILD_DEPENDS intltool gamin-dev vala"
24 esac
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 ./autogen.sh
30 ./configure \
31 --sysconfdir=/etc \
32 $CONFIGURE_ARGS &&
33 make && make install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr/lib/libfm/modules $fs/usr/share/libfm
40 cp -a $install/etc $fs
41 cp -a $install/usr/lib/libfm.so* $fs/usr/lib
42 cp -a $install/usr/lib/libfm-extra.so* $fs/usr/lib
43 cp -a $install/usr/lib/libfm/modules/vfs* $fs/usr/lib/libfm/modules
44 cp -a $install/usr/share/libfm/*.list $fs/usr/share/libfm
45 sed "s|application/deb;|&application/x-xz-compressed-tar;|" -i \
46 $fs/usr/share/libfm/archivers.list
47 # define terminal
48 sed -i 2i\ 'terminal=terminal' $fs/etc/xdg/libfm/libfm.conf
49 # set small & pane icon size to 16
50 sed -i 's|\(\(small\|pane\)_icon_size=\).*|\116|' $fs/etc/xdg/libfm/libfm.conf
51 }