wok annotate libfm/receipt @ rev 21311

3) libfm: up (1.3.1)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Apr 18 17:37:35 2019 +0300 (2019-04-18)
parents aac6b4243788
children f99a5ac6f745
rev   line source
pascal@11205 1 # SliTaz package receipt.
pascal@11205 2
pascal@11205 3 PACKAGE="libfm"
al@21311 4 VERSION="1.3.1"
pascal@11205 5 CATEGORY="system-tools"
al@17992 6 SHORT_DESC="File management support (core library)"
al@21311 7 MAINTAINER="devel@slitaz.org"
pascal@14714 8 LICENSE="GPL2"
pankso@15750 9 TARBALL="$PACKAGE-$VERSION.tar.xz"
pankso@11897 10 WEB_SITE="http://pcmanfm.sourceforge.net"
al@21311 11 WGET_URL="$SF_MIRROR/pcmanfm/$TARBALL"
al@21311 12 #EXTRA_SOURCE_FILES="$PACKAGE-reversepatch_SF949_7daeaf3.u" # Really fix segfault
al@21311 13 #WGET_URL2="https://github.com/lxde/libfm/commit/7daeaf3.patch"
psychomaniak@19559 14 #WGETURL3="https://github.com/lxde/libfm/commit/2c00984.patch" #narrow 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 {
al@21311 31 # [ -s $SOURCES_REPOSITORY/$EXTRA_SOURCE_FILES ] || \
al@21311 32 # wget -O $SOURCES_REPOSITORY/$EXTRA_SOURCE_FILES $WGET_URL2
al@21311 33 # patch -p1 -R -i $SOURCES_REPOSITORY/$EXTRA_SOURCE_FILES
al@21311 34 # # fix freeze when using custom action with "inode/directory":
al@21311 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 \
al@21311 38 --disable-static \
pascal@11205 39 $CONFIGURE_ARGS &&
al@21311 40 make && make install || return 1
al@21311 41
al@21311 42 # remove libfm-extra files (already provided by libfm-extra package)
al@21311 43 rm $install/usr/lib/libfm-extra.* $install/usr/lib/pkgconfig/libfm-extra.pc
pascal@11205 44 }
pascal@11205 45
pascal@11205 46 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@11205 47 genpkg_rules()
pascal@11205 48 {
al@16830 49 mkdir -p $fs/usr/lib/libfm/modules $fs/usr/share/libfm
al@21311 50 cp -a $install/etc $fs/
al@21311 51 cp -a $install/usr/lib/libfm.so* $fs/usr/lib/
al@21311 52 cp -a $install/usr/lib/libfm/modules/vfs* $fs/usr/lib/libfm/modules/
al@21311 53 cp -a $install/usr/share/libfm/*.list $fs/usr/share/libfm/
al@17963 54 # define terminal
al@17963 55 sed -i 2i\ 'terminal=terminal' $fs/etc/xdg/libfm/libfm.conf
al@17963 56 # set small & pane icon size to 16
al@17963 57 sed -i 's|\(\(small\|pane\)_icon_size=\).*|\116|' $fs/etc/xdg/libfm/libfm.conf
pascal@11205 58 }