wok-current annotate libfm/receipt @ rev 18497
libfm: define tar.xz for xarchiver
author | Xander Ziiryanoff <psychomaniak@xakep.ru> |
---|---|
date | Sun Oct 11 13:59:02 2015 +0200 (2015-10-11) |
parents | d2af45554821 |
children | 9f85bdbb50bf |
rev | line source |
---|---|
pascal@11205 | 1 # SliTaz package receipt. |
pascal@11205 | 2 |
pascal@11205 | 3 PACKAGE="libfm" |
psychomaniak@18150 | 4 VERSION="7daeaf3" |
pascal@11205 | 5 CATEGORY="system-tools" |
al@17992 | 6 SHORT_DESC="File management support (core library)" |
pascal@11205 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@14714 | 8 LICENSE="GPL2" |
pankso@15750 | 9 TARBALL="$PACKAGE-$VERSION.tar.xz" |
pankso@11897 | 10 WEB_SITE="http://pcmanfm.sourceforge.net" |
psychomaniak@18130 | 11 #WGET_URL="$SF_MIRROR/pcmanfm/files/$TARBALL" |
psychomaniak@18130 | 12 WGET_URL="http://git.lxde.org/gitweb/?p=lxde/libfm.git;a=snapshot;h=$VERSION;sf=txz" |
pankso@16276 | 13 HOST_ARCH="i486 arm" |
al@16830 | 14 GENERIC_MENUS="no" |
pankso@11897 | 15 |
al@16830 | 16 SUGGESTED="gvfs" |
al@16830 | 17 DEPENDS="glib glibc-base libffi libgio menu-cache pcre zlib" |
pankso@16276 | 18 BUILD_DEPENDS="gtk+-dev dbus-glib-dev dbus-dev startup-notification-dev \ |
pankso@16315 | 19 libxcb-dev xcb-util-dev menu-cache-dev expat-dev libgio-dev \ |
psychomaniak@18130 | 20 shared-mime-info-dev gtk-doc libtool" |
pankso@16276 | 21 |
pankso@16276 | 22 case "$ARCH" in |
pankso@16315 | 23 i?86) BUILD_DEPENDS="$BUILD_DEPENDS intltool gamin-dev vala" |
pankso@16276 | 24 esac |
pascal@11205 | 25 |
pascal@11205 | 26 # Rules to configure and make the package. |
pascal@11205 | 27 compile_rules() |
pascal@11205 | 28 { |
psychomaniak@18130 | 29 ./autogen.sh |
pascal@11205 | 30 ./configure \ |
pascal@11205 | 31 --sysconfdir=/etc \ |
pascal@11205 | 32 $CONFIGURE_ARGS && |
pankso@11897 | 33 make && make install |
pascal@11205 | 34 } |
pascal@11205 | 35 |
pascal@11205 | 36 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@11205 | 37 genpkg_rules() |
pascal@11205 | 38 { |
al@16830 | 39 mkdir -p $fs/usr/lib/libfm/modules $fs/usr/share/libfm |
pankso@11897 | 40 cp -a $install/etc $fs |
al@16830 | 41 cp -a $install/usr/lib/libfm.so* $fs/usr/lib |
al@16830 | 42 cp -a $install/usr/lib/libfm-extra.so* $fs/usr/lib |
al@16830 | 43 cp -a $install/usr/lib/libfm/modules/vfs* $fs/usr/lib/libfm/modules |
al@16830 | 44 cp -a $install/usr/share/libfm/*.list $fs/usr/share/libfm |
psychomaniak@18497 | 45 sed "s|application/deb;|&application/x-xz-compressed-tar;|" -i \ |
psychomaniak@18497 | 46 $fs/usr/share/libfm/archivers.list |
al@17963 | 47 # define terminal |
al@17963 | 48 sed -i 2i\ 'terminal=terminal' $fs/etc/xdg/libfm/libfm.conf |
al@17963 | 49 # set small & pane icon size to 16 |
al@17963 | 50 sed -i 's|\(\(small\|pane\)_icon_size=\).*|\116|' $fs/etc/xdg/libfm/libfm.conf |
pascal@11205 | 51 } |