wok annotate libfm/receipt @ rev 24452
cyrus-imapd: configured libexecdir
author | Hans-G?nter Theisgen |
---|---|
date | Tue Feb 15 17:13:46 2022 +0100 (2022-02-15) |
parents | b454de65b47b |
children | e9d0b2012a0d |
rev | line source |
---|---|
pascal@11205 | 1 # SliTaz package receipt. |
pascal@11205 | 2 |
pascal@11205 | 3 PACKAGE="libfm" |
al@21311 | 4 VERSION="1.3.1" |
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" |
Hans-G?nter@23814 | 9 WEB_SITE="http://pcmanfm.sourceforge.net" |
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" |
al@16830 | 15 DEPENDS="glib glibc-base libffi libgio menu-cache pcre zlib" |
Hans-G?nter@23814 | 16 BUILD_DEPENDS="automake dbus-dev dbus-glib-dev expat-dev gtk-doc gtk+-dev |
Hans-G?nter@23814 | 17 libgio-dev libtool libxcb-dev menu-cache-dev shared-mime-info-dev |
Hans-G?nter@23814 | 18 startup-notification-dev xcb-util-dev" # git-version deps: gtk-doc libtool automake |
Hans-G?nter@23814 | 19 |
Hans-G?nter@23814 | 20 GENERIC_MENUS="no" |
Hans-G?nter@23814 | 21 |
Hans-G?nter@23814 | 22 HOST_ARCH="i486 arm" |
pankso@16276 | 23 |
pankso@16276 | 24 case "$ARCH" in |
psychomaniak@18499 | 25 i?86) BUILD_DEPENDS="$BUILD_DEPENDS intltool vala" |
pankso@16276 | 26 esac |
pascal@11205 | 27 |
pascal@24071 | 28 current_version() |
pascal@24071 | 29 { |
pascal@24071 | 30 wget -O - https://sourceforge.net/projects/pcmanfm/files/PCManFM%20%2B%20Libfm%20%28tarball%20release%29/LibFM/ 2>/dev/null | \ |
pascal@24071 | 31 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|;q" |
pascal@24071 | 32 } |
pascal@24071 | 33 |
pascal@11205 | 34 # Rules to configure and make the package. |
pascal@11205 | 35 compile_rules() |
pascal@11205 | 36 { |
al@21312 | 37 ./autogen.sh |
al@21358 | 38 |
al@21358 | 39 patch -p1 -i $stuff/quick-exec.patch |
Hans-G?nter@23814 | 40 |
Hans-G?nter@23814 | 41 # Do *not* treat desktop entries as executables! |
Hans-G?nter@23814 | 42 patch --input $stuff/patches/fm-file-info.c-1.3.1 \ |
Hans-G?nter@23814 | 43 src/base/fm-file-info.c |
Hans-G?nter@23814 | 44 |
Hans-G?nter@23814 | 45 ./configure \ |
Hans-G?nter@23814 | 46 --sysconfdir=/etc \ |
Hans-G?nter@23814 | 47 --disable-static \ |
pascal@11205 | 48 $CONFIGURE_ARGS && |
Hans-G?nter@23814 | 49 make && |
Hans-G?nter@23814 | 50 make install || return 1 |
al@21311 | 51 |
al@21311 | 52 # remove libfm-extra files (already provided by libfm-extra package) |
Hans-G?nter@23814 | 53 rm $install/usr/lib/libfm-extra.* |
Hans-G?nter@23814 | 54 rm $install/usr/lib/pkgconfig/libfm-extra.pc |
pascal@11205 | 55 } |
pascal@11205 | 56 |
pascal@11205 | 57 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@11205 | 58 genpkg_rules() |
pascal@11205 | 59 { |
Hans-G?nter@23814 | 60 mkdir -p $fs/usr/lib/libfm/modules |
Hans-G?nter@23814 | 61 mkdir -p $fs/usr/share/libfm |
Hans-G?nter@23814 | 62 |
Hans-G?nter@23814 | 63 cp -a $install/etc $fs |
Hans-G?nter@23814 | 64 cp -a $install/usr/lib/libfm.so* $fs/usr/lib |
Hans-G?nter@23814 | 65 cp -a $install/usr/lib/libfm/modules/vfs* $fs/usr/lib/libfm/modules |
Hans-G?nter@23814 | 66 cp -a $install/usr/share/libfm/*.list $fs/usr/share/libfm |
Hans-G?nter@23814 | 67 |
al@17963 | 68 # define terminal |
Hans-G?nter@23814 | 69 sed -i 2i\ 'terminal=terminal' \ |
Hans-G?nter@23814 | 70 $fs/etc/xdg/libfm/libfm.conf |
Hans-G?nter@23814 | 71 # set small and pane icon size to 16 |
Hans-G?nter@23814 | 72 sed -i 's|\(\(small\|pane\)_icon_size=\).*|\116|' \ |
Hans-G?nter@23814 | 73 $fs/etc/xdg/libfm/libfm.conf |
pascal@11205 | 74 } |