wok view libfm/receipt @ rev 25389

updated unshield (1.4.3 -> 1.5.1)
author Hans-G?nter Theisgen
date Sun Jul 31 17:54:11 2022 +0100 (2022-07-31)
parents e9d0b2012a0d
children
line source
1 # SliTaz package receipt.
3 PACKAGE="libfm"
4 VERSION="1.3.2"
5 CATEGORY="system-tools"
6 SHORT_DESC="File management support (core library)."
7 MAINTAINER="maintainer@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://www.lxde.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="$SF_MIRROR/pcmanfm/$TARBALL"
14 SUGGESTED="gvfs"
15 DEPENDS="glib glibc-base libffi libgio libxml2 menu-cache pcre zlib"
16 BUILD_DEPENDS="dbus-dev dbus-glib-dev expat-dev gtk-doc gtk+-dev
17 libgio-dev libtool libxcb-dev libxml2-dev menu-cache-dev
18 shared-mime-info-dev startup-notification-dev xcb-util-dev"
19 # git-version deps: gtk-doc libtool automake
21 GENERIC_MENUS="no"
23 HOST_ARCH="i486 arm"
25 case "$ARCH" in
26 i?86) BUILD_DEPENDS="$BUILD_DEPENDS intltool vala"
27 esac
29 current_version()
30 {
31 wget -O - https://sourceforge.net/projects/pcmanfm/files/PCManFM%20%2B%20Libfm%20%28tarball%20release%29/LibFM/ 2>/dev/null | \
32 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|;q"
33 }
35 # Rules to configure and make the package.
36 compile_rules()
37 {
38 patch -p1 -i $stuff/quick-exec.patch
40 # Do *not* treat desktop entries as executables!
41 patch --input $stuff/patches/fm-file-info.c-1.3.1 \
42 src/base/fm-file-info.c
44 ./configure \
45 --sysconfdir=/etc \
46 --disable-static \
47 $CONFIGURE_ARGS &&
48 make &&
49 make install || return 1
51 # remove libfm-extra files (already provided by libfm-extra package)
52 rm $install/usr/lib/libfm-extra.*
53 rm $install/usr/lib/pkgconfig/libfm-extra.pc
54 }
56 # Rules to gen a SliTaz package suitable for Tazpkg.
57 genpkg_rules()
58 {
59 mkdir -p $fs/usr/lib/libfm/modules
60 mkdir -p $fs/usr/share/libfm
62 cp -a $install/etc $fs
63 cp -a $install/usr/lib/libfm.so* $fs/usr/lib
64 cp -a $install/usr/lib/libfm/modules/vfs* $fs/usr/lib/libfm/modules
65 cp -a $install/usr/share/libfm/*.list $fs/usr/share/libfm
67 # define terminal
68 sed -i 2i\ 'terminal=terminal' \
69 $fs/etc/xdg/libfm/libfm.conf
70 # set small and pane icon size to 16
71 sed -i 's|\(\(small\|pane\)_icon_size=\).*|\116|' \
72 $fs/etc/xdg/libfm/libfm.conf
73 }