wok view libfm/receipt @ rev 24545

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