wok view pcmanfm/receipt @ rev 24979

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