wok view pcmanfm/receipt @ rev 25509

sgmixer: update wget_url
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 12 13:14:45 2023 +0000 (21 months ago)
parents 9e975300b9fa
children 69e1e705f038
line source
1 # SliTaz package receipt.
3 PACKAGE="pcmanfm"
4 VERSION="1.3.2"
5 CATEGORY="system-tools"
6 TAGS="file-manager"
7 SHORT_DESC="Light and easy to use file manager."
8 MAINTAINER="maintainer@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="https://sourceforge.net/projects/pcmanfm"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="$SF_MIRROR/$PACKAGE/files/$TARBALL"
15 SUGGESTED="gvfs"
16 DEPENDS="dbus dbus-glib expat fontconfig freetype glib glibc-base gtk+
17 libfm-gtk libgio libxcb libxml2 startup-notification util-linux-uuid
18 xcb-util zlib"
19 BUILD_DEPENDS="dbus-glib-dev dbus-dev expat-dev gtk-doc gtk+-dev libfm-dev
20 libfm-gtk libtool libxcb-dev libxml2-dev menu-cache-dev
21 startup-notification-dev xcb-util-dev"
23 HOST_ARCH="i486 arm"
25 # Handle cross compilation.
26 case "$ARCH" in
27 i?86) BUILD_DEPENDS="$BUILD_DEPENDS shared-mime-info intltool gvfs-dev" ;;
28 esac
30 # What is the latest version available today?
31 current_version()
32 {
33 wget -O - https://sourceforge.net/projects/pcmanfm/files/PCManFM%20%2B%20Libfm%20%28tarball%20release%29/PCManFM/ 2>/dev/null | \
34 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|;q"
35 }
37 # Rules to configure and make the package.
38 compile_rules()
39 {
40 patch -p1 -R -i $stuff/fix_desktop_menus.patch
41 patch -p1 -i $stuff/pcmanfm-network-icon.patch
42 patch -p1 -i $stuff/pcmanfm-handlers.patch
44 ./configure $CONFIGURE_ARGS &&
45 make &&
46 make install
47 }
49 # Rules to gen a SliTaz package suitable for Tazpkg.
50 genpkg_rules()
51 {
52 mkdir -p $fs/usr/share/file-manager
53 mkdir -p $fs/etc/xdg/pcmanfm
55 cp -a $stuff/default $fs/etc/xdg/pcmanfm
56 cp -a $install/usr/bin $fs/usr
57 cp -a $install/usr/share/pcmanfm $fs/usr/share
59 # XDG autostart desktop file (lxsession will use it automatically)
60 cp -a $stuff/autostart $fs/etc/xdg
62 cp -a $install/usr/share/applications $fs/usr/share
64 # Add custom actions
65 cp -a $stuff/actions $fs/usr/share/file-manager
66 cp -a $stuff/gvfs-mount-archive.sh $fs/usr/bin
67 chmod +x $fs/usr/bin/gvfs-mount-archive.sh
68 }