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