wok annotate libfm/receipt @ rev 25734

updated sc-im (-> 0.8.4)
author Hans-G?nter Theisgen
date Thu Aug 22 14:48:42 2024 +0100 (2 months ago)
parents e9d0b2012a0d
children
rev   line source
pascal@11205 1 # SliTaz package receipt.
pascal@11205 2
pascal@11205 3 PACKAGE="libfm"
Hans-G?nter@24745 4 VERSION="1.3.2"
pascal@11205 5 CATEGORY="system-tools"
Hans-G?nter@23814 6 SHORT_DESC="File management support (core library)."
Hans-G?nter@23814 7 MAINTAINER="maintainer@slitaz.org"
pascal@14714 8 LICENSE="GPL2"
pascal@25060 9 WEB_SITE="https://www.lxde.org/"
Hans-G?nter@23814 10
pankso@15750 11 TARBALL="$PACKAGE-$VERSION.tar.xz"
al@21311 12 WGET_URL="$SF_MIRROR/pcmanfm/$TARBALL"
pankso@11897 13
al@16830 14 SUGGESTED="gvfs"
Hans-G?nter@24745 15 DEPENDS="glib glibc-base libffi libgio libxml2 menu-cache pcre zlib"
Hans-G?nter@24745 16 BUILD_DEPENDS="dbus-dev dbus-glib-dev expat-dev gtk-doc gtk+-dev
Hans-G?nter@24745 17 libgio-dev libtool libxcb-dev libxml2-dev menu-cache-dev
Hans-G?nter@24745 18 shared-mime-info-dev startup-notification-dev xcb-util-dev"
Hans-G?nter@24745 19 # git-version deps: gtk-doc libtool automake
Hans-G?nter@23814 20
Hans-G?nter@23814 21 GENERIC_MENUS="no"
Hans-G?nter@23814 22
Hans-G?nter@23814 23 HOST_ARCH="i486 arm"
pankso@16276 24
pankso@16276 25 case "$ARCH" in
psychomaniak@18499 26 i?86) BUILD_DEPENDS="$BUILD_DEPENDS intltool vala"
pankso@16276 27 esac
pascal@11205 28
pascal@24071 29 current_version()
pascal@24071 30 {
pascal@24071 31 wget -O - https://sourceforge.net/projects/pcmanfm/files/PCManFM%20%2B%20Libfm%20%28tarball%20release%29/LibFM/ 2>/dev/null | \
pascal@24071 32 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|;q"
pascal@24071 33 }
pascal@24071 34
pascal@11205 35 # Rules to configure and make the package.
pascal@11205 36 compile_rules()
pascal@11205 37 {
al@21358 38 patch -p1 -i $stuff/quick-exec.patch
Hans-G?nter@23814 39
Hans-G?nter@23814 40 # Do *not* treat desktop entries as executables!
Hans-G?nter@23814 41 patch --input $stuff/patches/fm-file-info.c-1.3.1 \
Hans-G?nter@23814 42 src/base/fm-file-info.c
Hans-G?nter@23814 43
Hans-G?nter@23814 44 ./configure \
Hans-G?nter@23814 45 --sysconfdir=/etc \
Hans-G?nter@23814 46 --disable-static \
pascal@11205 47 $CONFIGURE_ARGS &&
Hans-G?nter@23814 48 make &&
Hans-G?nter@23814 49 make install || return 1
al@21311 50
al@21311 51 # remove libfm-extra files (already provided by libfm-extra package)
Hans-G?nter@24745 52 rm $install/usr/lib/libfm-extra.*
Hans-G?nter@24745 53 rm $install/usr/lib/pkgconfig/libfm-extra.pc
pascal@11205 54 }
pascal@11205 55
pascal@11205 56 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@11205 57 genpkg_rules()
pascal@11205 58 {
Hans-G?nter@23814 59 mkdir -p $fs/usr/lib/libfm/modules
Hans-G?nter@23814 60 mkdir -p $fs/usr/share/libfm
Hans-G?nter@23814 61
Hans-G?nter@23814 62 cp -a $install/etc $fs
Hans-G?nter@23814 63 cp -a $install/usr/lib/libfm.so* $fs/usr/lib
Hans-G?nter@23814 64 cp -a $install/usr/lib/libfm/modules/vfs* $fs/usr/lib/libfm/modules
Hans-G?nter@23814 65 cp -a $install/usr/share/libfm/*.list $fs/usr/share/libfm
Hans-G?nter@23814 66
al@17963 67 # define terminal
Hans-G?nter@23814 68 sed -i 2i\ 'terminal=terminal' \
Hans-G?nter@23814 69 $fs/etc/xdg/libfm/libfm.conf
Hans-G?nter@23814 70 # set small and pane icon size to 16
Hans-G?nter@23814 71 sed -i 's|\(\(small\|pane\)_icon_size=\).*|\116|' \
Hans-G?nter@23814 72 $fs/etc/xdg/libfm/libfm.conf
pascal@11205 73 }