wok-current view pcmanfm/receipt @ rev 25187
mencoder: reordered recipe
author | Hans-G?nter Theisgen |
---|---|
date | Tue Jul 12 10:44:40 2022 +0100 (2022-07-12) |
parents | d765616e1f3d |
children | ad0bc3efbf37 |
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 current_version()
31 {
32 wget -O - https://sourceforge.net/projects/pcmanfm/files/PCManFM%20%2B%20Libfm%20%28tarball%20release%29/PCManFM/ 2>/dev/null | \
33 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|;q"
34 }
36 # Rules to configure and make the package.
37 compile_rules()
38 {
39 patch -p1 -R -i $stuff/fix_desktop_menus.patch
40 patch -p1 -i $stuff/pcmanfm-network-icon.patch
41 patch -p1 -i $stuff/pcmanfm-handlers.patch
43 ./configure $CONFIGURE_ARGS &&
44 make &&
45 make install
46 }
48 # Rules to gen a SliTaz package suitable for Tazpkg.
49 genpkg_rules()
50 {
51 mkdir -p $fs/usr/share/file-manager
52 mkdir -p $fs/etc/xdg/pcmanfm
54 cp -a $stuff/default $fs/etc/xdg/pcmanfm
55 cp -a $install/usr/bin $fs/usr
56 cp -a $install/usr/share/pcmanfm $fs/usr/share
58 # XDG autostart desktop file (lxsession will use it automatically)
59 cp -a $stuff/autostart $fs/etc/xdg
61 cp -a $install/usr/share/applications $fs/usr/share
63 # Add custom actions
64 cp -a $stuff/actions $fs/usr/share/file-manager
65 cp -a $stuff/gvfs-mount-archive.sh $fs/usr/bin
66 chmod +x $fs/usr/bin/gvfs-mount-archive.sh
67 }