wok-current annotate libfm/receipt @ rev 23244
updated ninja (1.9.0 -> 1.10.0)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Mar 25 10:19:28 2020 +0100 (2020-03-25) |
parents | f99a5ac6f745 |
children | b454de65b47b |
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 |
al@21358 | 38 |
al@21358 | 39 patch -p1 -i $stuff/quick-exec.patch |
pascal@11205 | 40 ./configure \ |
pascal@11205 | 41 --sysconfdir=/etc \ |
al@21311 | 42 --disable-static \ |
pascal@11205 | 43 $CONFIGURE_ARGS && |
al@21311 | 44 make && make install || return 1 |
al@21311 | 45 |
al@21311 | 46 # remove libfm-extra files (already provided by libfm-extra package) |
al@21311 | 47 rm $install/usr/lib/libfm-extra.* $install/usr/lib/pkgconfig/libfm-extra.pc |
pascal@11205 | 48 } |
pascal@11205 | 49 |
pascal@11205 | 50 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@11205 | 51 genpkg_rules() |
pascal@11205 | 52 { |
al@16830 | 53 mkdir -p $fs/usr/lib/libfm/modules $fs/usr/share/libfm |
al@21311 | 54 cp -a $install/etc $fs/ |
al@21311 | 55 cp -a $install/usr/lib/libfm.so* $fs/usr/lib/ |
al@21311 | 56 cp -a $install/usr/lib/libfm/modules/vfs* $fs/usr/lib/libfm/modules/ |
al@21311 | 57 cp -a $install/usr/share/libfm/*.list $fs/usr/share/libfm/ |
al@17963 | 58 # define terminal |
al@17963 | 59 sed -i 2i\ 'terminal=terminal' $fs/etc/xdg/libfm/libfm.conf |
al@17963 | 60 # set small & pane icon size to 16 |
al@17963 | 61 sed -i 's|\(\(small\|pane\)_icon_size=\).*|\116|' $fs/etc/xdg/libfm/libfm.conf |
pascal@11205 | 62 } |