wok-6.x view libfm/receipt @ rev 19528
harfbuzz: mv /usr/bin to harfbuzz-apps (hg add)
author | Xander Ziiryanoff <psychomaniak@xakep.ru> |
---|---|
date | Mon Nov 28 16:31:17 2016 +0100 (2016-11-28) |
parents | 9f85bdbb50bf |
children | aac6b4243788 |
line source
1 # SliTaz package receipt.
3 PACKAGE="libfm"
4 VERSION="1.2.4"
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/113ea3c.diff" # wide 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 }