wok-6.x annotate libfm/receipt @ rev 19081

Add rrdtool-lite
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Apr 29 12:53:30 2016 +0200 (2016-04-29)
parents 9f85bdbb50bf
children aac6b4243788
rev   line source
pascal@11205 1 # SliTaz package receipt.
pascal@11205 2
pascal@11205 3 PACKAGE="libfm"
psychomaniak@19037 4 VERSION="1.2.4"
pascal@11205 5 CATEGORY="system-tools"
al@17992 6 SHORT_DESC="File management support (core library)"
pascal@11205 7 MAINTAINER="pankso@slitaz.org"
pascal@14714 8 LICENSE="GPL2"
pankso@15750 9 TARBALL="$PACKAGE-$VERSION.tar.xz"
pankso@11897 10 WEB_SITE="http://pcmanfm.sourceforge.net"
psychomaniak@19037 11 WGET_URL="$SF_MIRROR/pcmanfm/files/$TARBALL"
psychomaniak@19037 12 EXTRA_SOURCE_FILES="$PACKAGE-reversepatch_SF949_7daeaf3.u" # Really fix segfault
psychomaniak@19037 13 WGET_URL2="https://github.com/lxde/libfm/commit/7daeaf3.patch"
psychomaniak@19037 14 #WGETURL3="https://github.com/lxde/libfm/commit/113ea3c.diff" # wide icon cell
pankso@16276 15 HOST_ARCH="i486 arm"
al@16830 16 GENERIC_MENUS="no"
pankso@11897 17
al@16830 18 SUGGESTED="gvfs"
al@16830 19 DEPENDS="glib glibc-base libffi libgio menu-cache pcre zlib"
pankso@16276 20 BUILD_DEPENDS="gtk+-dev dbus-glib-dev dbus-dev startup-notification-dev \
pankso@16315 21 libxcb-dev xcb-util-dev menu-cache-dev expat-dev libgio-dev \
psychomaniak@19037 22 shared-mime-info-dev" # git-version deps: gtk-doc libtool automake
pankso@16276 23
pankso@16276 24 case "$ARCH" in
psychomaniak@18499 25 i?86) BUILD_DEPENDS="$BUILD_DEPENDS intltool vala"
pankso@16276 26 esac
pascal@11205 27
pascal@11205 28 # Rules to configure and make the package.
pascal@11205 29 compile_rules()
pascal@11205 30 {
psychomaniak@18499 31 [ -s $SOURCES_REPOSITORY/$EXTRA_SOURCE_FILES ] || \
psychomaniak@18499 32 wget -O $SOURCES_REPOSITORY/$EXTRA_SOURCE_FILES $WGET_URL2
psychomaniak@18499 33 patch -p1 -R -i $SOURCES_REPOSITORY/$EXTRA_SOURCE_FILES
psychomaniak@19037 34 # fix freeze when using custom action with "inode/directory":
psychomaniak@19037 35 sed 's|TRUE, 0.5, 0.0|FALSE, 0.0f, 0.0f|' -i src/gtk/fm-standard-view.c
pascal@11205 36 ./configure \
pascal@11205 37 --sysconfdir=/etc \
pascal@11205 38 $CONFIGURE_ARGS &&
pankso@11897 39 make && make install
pascal@11205 40 }
pascal@11205 41
pascal@11205 42 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@11205 43 genpkg_rules()
pascal@11205 44 {
al@16830 45 mkdir -p $fs/usr/lib/libfm/modules $fs/usr/share/libfm
pankso@11897 46 cp -a $install/etc $fs
al@16830 47 cp -a $install/usr/lib/libfm.so* $fs/usr/lib
al@16830 48 cp -a $install/usr/lib/libfm-extra.so* $fs/usr/lib
al@16830 49 cp -a $install/usr/lib/libfm/modules/vfs* $fs/usr/lib/libfm/modules
al@16830 50 cp -a $install/usr/share/libfm/*.list $fs/usr/share/libfm
psychomaniak@18499 51 sed "s|application/deb;$|&application/x-xz-compressed-tar;|" -i \
psychomaniak@18497 52 $fs/usr/share/libfm/archivers.list
al@17963 53 # define terminal
al@17963 54 sed -i 2i\ 'terminal=terminal' $fs/etc/xdg/libfm/libfm.conf
al@17963 55 # set small & pane icon size to 16
al@17963 56 sed -i 's|\(\(small\|pane\)_icon_size=\).*|\116|' $fs/etc/xdg/libfm/libfm.conf
pascal@11205 57 }