# SliTaz package receipt. PACKAGE="pcmanfm" VERSION="1.3.2" CATEGORY="system-tools" TAGS="file-manager" SHORT_DESC="Light and easy to use file manager." MAINTAINER="maintainer@slitaz.org" LICENSE="GPL2" WEB_SITE="https://sourceforge.net/projects/pcmanfm/" TARBALL="$PACKAGE-$VERSION.tar.xz" WGET_URL="$SF_MIRROR/$PACKAGE/files/$TARBALL" SUGGESTED="gvfs" DEPENDS="dbus dbus-glib expat fontconfig freetype glib glibc-base gtk+ libfm-gtk libgio libxcb libxml2 startup-notification util-linux-uuid xcb-util zlib" BUILD_DEPENDS="dbus-glib-dev dbus-dev expat-dev gtk-doc gtk+-dev libfm-dev libfm-gtk libtool libxcb-dev libxml2-dev menu-cache-dev startup-notification-dev xcb-util-dev" HOST_ARCH="i486 arm" # Handle cross compilation. case "$ARCH" in i?86) BUILD_DEPENDS="$BUILD_DEPENDS shared-mime-info intltool gvfs-dev" ;; esac # What is the latest version available today? current_version() { wget -O - https://sourceforge.net/projects/pcmanfm/files/PCManFM%20%2B%20Libfm%20%28tarball%20release%29/PCManFM/ 2>/dev/null | \ sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|;q" } # Rules to configure and make the package. compile_rules() { patch -p1 -R -i $stuff/fix_desktop_menus.patch patch -p1 -i $stuff/pcmanfm-network-icon.patch patch -p1 -i $stuff/pcmanfm-handlers.patch ./configure $CONFIGURE_ARGS && make && make install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/share/file-manager mkdir -p $fs/etc/xdg/pcmanfm cp -a $stuff/default $fs/etc/xdg/pcmanfm cp -a $install/usr/bin $fs/usr cp -a $install/usr/share/pcmanfm $fs/usr/share # XDG autostart desktop file (lxsession will use it automatically) cp -a $stuff/autostart $fs/etc/xdg cp -a $install/usr/share/applications $fs/usr/share # Add custom actions cp -a $stuff/actions $fs/usr/share/file-manager cp -a $stuff/gvfs-mount-archive.sh $fs/usr/bin chmod +x $fs/usr/bin/gvfs-mount-archive.sh }