wok-current view libfm/receipt @ rev 23638

updated sed (4.7 -> 4.8)
author Hans-G?nter Theisgen
date Mon Apr 20 10:17:35 2020 +0100 (2020-04-20)
parents f99a5ac6f745
children b454de65b47b
line source
1 # SliTaz package receipt.
3 PACKAGE="libfm"
4 VERSION="1.3.1"
5 CATEGORY="system-tools"
6 SHORT_DESC="File management support (core library)"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.xz"
10 WEB_SITE="http://pcmanfm.sourceforge.net"
11 WGET_URL="$SF_MIRROR/pcmanfm/$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="automake gtk-doc libtool \
21 gtk+-dev dbus-glib-dev dbus-dev startup-notification-dev \
22 libxcb-dev xcb-util-dev menu-cache-dev expat-dev libgio-dev \
23 shared-mime-info-dev" # git-version deps: gtk-doc libtool automake
25 case "$ARCH" in
26 i?86) BUILD_DEPENDS="$BUILD_DEPENDS intltool vala"
27 esac
29 # Rules to configure and make the package.
30 compile_rules()
31 {
32 # [ -s $SOURCES_REPOSITORY/$EXTRA_SOURCE_FILES ] || \
33 # wget -O $SOURCES_REPOSITORY/$EXTRA_SOURCE_FILES $WGET_URL2
34 # patch -p1 -R -i $SOURCES_REPOSITORY/$EXTRA_SOURCE_FILES
35 # # fix freeze when using custom action with "inode/directory":
36 # sed 's|TRUE, 0.5, 0.0|FALSE, 0.0f, 0.0f|' -i src/gtk/fm-standard-view.c
37 ./autogen.sh
39 patch -p1 -i $stuff/quick-exec.patch
40 ./configure \
41 --sysconfdir=/etc \
42 --disable-static \
43 $CONFIGURE_ARGS &&
44 make && make install || return 1
46 # remove libfm-extra files (already provided by libfm-extra package)
47 rm $install/usr/lib/libfm-extra.* $install/usr/lib/pkgconfig/libfm-extra.pc
48 }
50 # Rules to gen a SliTaz package suitable for Tazpkg.
51 genpkg_rules()
52 {
53 mkdir -p $fs/usr/lib/libfm/modules $fs/usr/share/libfm
54 cp -a $install/etc $fs/
55 cp -a $install/usr/lib/libfm.so* $fs/usr/lib/
56 cp -a $install/usr/lib/libfm/modules/vfs* $fs/usr/lib/libfm/modules/
57 cp -a $install/usr/share/libfm/*.list $fs/usr/share/libfm/
58 # define terminal
59 sed -i 2i\ 'terminal=terminal' $fs/etc/xdg/libfm/libfm.conf
60 # set small & pane icon size to 16
61 sed -i 's|\(\(small\|pane\)_icon_size=\).*|\116|' $fs/etc/xdg/libfm/libfm.conf
62 }