wok-current view libfm/receipt @ rev 20089

syslinux/isohybrid.sh: remove padding to MB
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Sep 30 15:39:19 2017 +0200 (2017-09-30)
parents d0c0682403b4
children 1ab1022f15c7
line source
1 # SliTaz package receipt.
3 PACKAGE="libfm"
4 VERSION="1.2.5"
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 EXTRA_SOURCE_FILES="$PACKAGE-reversepatch_SF949_7daeaf3.u" # Really fix segfault
13 WGET_URL2="https://github.com/lxde/libfm/commit/7daeaf3.patch"
14 #WGETURL3="https://github.com/lxde/libfm/commit/2c00984.patch" #narrow icon cell
15 HOST_ARCH="i486 arm"
16 GENERIC_MENUS="no"
18 SUGGESTED="gvfs"
19 DEPENDS="glib glibc-base libffi libgio menu-cache pcre zlib"
20 BUILD_DEPENDS="gtk+-dev dbus-glib-dev dbus-dev startup-notification-dev \
21 libxcb-dev xcb-util-dev menu-cache-dev expat-dev libgio-dev \
22 shared-mime-info-dev" # git-version deps: gtk-doc libtool automake
24 case "$ARCH" in
25 i?86) BUILD_DEPENDS="$BUILD_DEPENDS intltool vala"
26 esac
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 [ -s $SOURCES_REPOSITORY/$EXTRA_SOURCE_FILES ] || \
32 wget -O $SOURCES_REPOSITORY/$EXTRA_SOURCE_FILES $WGET_URL2
33 patch -p1 -R -i $SOURCES_REPOSITORY/$EXTRA_SOURCE_FILES
34 # fix freeze when using custom action with "inode/directory":
35 sed 's|TRUE, 0.5, 0.0|FALSE, 0.0f, 0.0f|' -i src/gtk/fm-standard-view.c
36 ./configure \
37 --sysconfdir=/etc \
38 $CONFIGURE_ARGS &&
39 make && make install
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 mkdir -p $fs/usr/lib/libfm/modules $fs/usr/share/libfm
46 cp -a $install/etc $fs
47 cp -a $install/usr/lib/libfm.so* $fs/usr/lib
48 cp -a $install/usr/lib/libfm-extra.so* $fs/usr/lib
49 cp -a $install/usr/lib/libfm/modules/vfs* $fs/usr/lib/libfm/modules
50 cp -a $install/usr/share/libfm/*.list $fs/usr/share/libfm
51 sed "s|application/deb;$|&application/x-xz-compressed-tar;|" -i \
52 $fs/usr/share/libfm/archivers.list
53 # define terminal
54 sed -i 2i\ 'terminal=terminal' $fs/etc/xdg/libfm/libfm.conf
55 # set small & pane icon size to 16
56 sed -i 's|\(\(small\|pane\)_icon_size=\).*|\116|' $fs/etc/xdg/libfm/libfm.conf
57 }