wok annotate pcmanfm/receipt @ rev 25267
Update some deps using gcc83-lib-base
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jul 17 08:24:48 2022 +0000 (2022-07-17) |
parents | d765616e1f3d |
children | ad0bc3efbf37 |
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" |
Hans-G?nter@25115 | 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@24071 | 30 current_version() |
pascal@24071 | 31 { |
pascal@24071 | 32 wget -O - https://sourceforge.net/projects/pcmanfm/files/PCManFM%20%2B%20Libfm%20%28tarball%20release%29/PCManFM/ 2>/dev/null | \ |
pascal@24071 | 33 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|;q" |
pascal@24071 | 34 } |
pascal@24071 | 35 |
pankso@255 | 36 # Rules to configure and make the package. |
pankso@255 | 37 compile_rules() |
pankso@255 | 38 { |
Hans-G?nter@25115 | 39 patch -p1 -R -i $stuff/fix_desktop_menus.patch |
Hans-G?nter@25115 | 40 patch -p1 -i $stuff/pcmanfm-network-icon.patch |
Hans-G?nter@25115 | 41 patch -p1 -i $stuff/pcmanfm-handlers.patch |
al@19317 | 42 |
pankso@13349 | 43 ./configure $CONFIGURE_ARGS && |
Hans-G?nter@25115 | 44 make && |
Hans-G?nter@25115 | 45 make install |
pankso@255 | 46 } |
pankso@255 | 47 |
pankso@255 | 48 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@255 | 49 genpkg_rules() |
pankso@255 | 50 { |
Hans-G?nter@25115 | 51 mkdir -p $fs/usr/share/file-manager |
Hans-G?nter@25115 | 52 mkdir -p $fs/etc/xdg/pcmanfm |
Hans-G?nter@25115 | 53 |
Hans-G?nter@25115 | 54 cp -a $stuff/default $fs/etc/xdg/pcmanfm |
Hans-G?nter@25115 | 55 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@25115 | 56 cp -a $install/usr/share/pcmanfm $fs/usr/share |
pankso@12561 | 57 |
al@16715 | 58 # XDG autostart desktop file (lxsession will use it automatically) |
Hans-G?nter@25115 | 59 cp -a $stuff/autostart $fs/etc/xdg |
al@17294 | 60 |
Hans-G?nter@25115 | 61 cp -a $install/usr/share/applications $fs/usr/share |
al@17294 | 62 |
al@17294 | 63 # Add custom actions |
Hans-G?nter@25115 | 64 cp -a $stuff/actions $fs/usr/share/file-manager |
Hans-G?nter@25115 | 65 cp -a $stuff/gvfs-mount-archive.sh $fs/usr/bin |
Hans-G?nter@25115 | 66 chmod +x $fs/usr/bin/gvfs-mount-archive.sh |
pankso@255 | 67 } |