wok-current annotate libfm/receipt @ rev 21312
3) libfm: fix build while using development sources
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Apr 18 17:42:01 2019 +0300 (2019-04-18) |
parents | 1ab1022f15c7 |
children | cad1580ae09a |
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" |
al@21312 | 20 BUILD_DEPENDS="automake gtk-doc libtool \ |
al@21312 | 21 gtk+-dev dbus-glib-dev dbus-dev startup-notification-dev \ |
pankso@16315 | 22 libxcb-dev xcb-util-dev menu-cache-dev expat-dev libgio-dev \ |
psychomaniak@19037 | 23 shared-mime-info-dev" # git-version deps: gtk-doc libtool automake |
pankso@16276 | 24 |
pankso@16276 | 25 case "$ARCH" in |
psychomaniak@18499 | 26 i?86) BUILD_DEPENDS="$BUILD_DEPENDS intltool vala" |
pankso@16276 | 27 esac |
pascal@11205 | 28 |
pascal@11205 | 29 # Rules to configure and make the package. |
pascal@11205 | 30 compile_rules() |
pascal@11205 | 31 { |
al@21311 | 32 # [ -s $SOURCES_REPOSITORY/$EXTRA_SOURCE_FILES ] || \ |
al@21311 | 33 # wget -O $SOURCES_REPOSITORY/$EXTRA_SOURCE_FILES $WGET_URL2 |
al@21311 | 34 # patch -p1 -R -i $SOURCES_REPOSITORY/$EXTRA_SOURCE_FILES |
al@21311 | 35 # # fix freeze when using custom action with "inode/directory": |
al@21311 | 36 # sed 's|TRUE, 0.5, 0.0|FALSE, 0.0f, 0.0f|' -i src/gtk/fm-standard-view.c |
al@21312 | 37 ./autogen.sh |
pascal@11205 | 38 ./configure \ |
pascal@11205 | 39 --sysconfdir=/etc \ |
al@21311 | 40 --disable-static \ |
pascal@11205 | 41 $CONFIGURE_ARGS && |
al@21311 | 42 make && make install || return 1 |
al@21311 | 43 |
al@21311 | 44 # remove libfm-extra files (already provided by libfm-extra package) |
al@21311 | 45 rm $install/usr/lib/libfm-extra.* $install/usr/lib/pkgconfig/libfm-extra.pc |
pascal@11205 | 46 } |
pascal@11205 | 47 |
pascal@11205 | 48 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@11205 | 49 genpkg_rules() |
pascal@11205 | 50 { |
al@16830 | 51 mkdir -p $fs/usr/lib/libfm/modules $fs/usr/share/libfm |
al@21311 | 52 cp -a $install/etc $fs/ |
al@21311 | 53 cp -a $install/usr/lib/libfm.so* $fs/usr/lib/ |
al@21311 | 54 cp -a $install/usr/lib/libfm/modules/vfs* $fs/usr/lib/libfm/modules/ |
al@21311 | 55 cp -a $install/usr/share/libfm/*.list $fs/usr/share/libfm/ |
al@17963 | 56 # define terminal |
al@17963 | 57 sed -i 2i\ 'terminal=terminal' $fs/etc/xdg/libfm/libfm.conf |
al@17963 | 58 # set small & pane icon size to 16 |
al@17963 | 59 sed -i 's|\(\(small\|pane\)_icon_size=\).*|\116|' $fs/etc/xdg/libfm/libfm.conf |
pascal@11205 | 60 } |