wok-next view libfm/receipt @ rev 21020
Cleaning is almost finished... I should proceed to upgrades.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Nov 02 14:15:08 2018 +0200 (2018-11-02) |
parents | f48456621a9d |
children | 7c5d038be95b |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="libfm"
4 VERSION="1.3.0.2"
5 CATEGORY="system-tools"
6 SHORT_DESC="File management support"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://wiki.lxde.org/en/Libfm"
10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/lxde/libfm.html"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 #WGET_URL="$SF_MIRROR/pcmanfm/$TARBALL" # SF download problems
14 WGET_URL="https://git.lxde.org/gitweb/?p=lxde/libfm.git;a=snapshot;h=$VERSION;sf=txz"
16 BUILD_DEPENDS="automake gtk-doc libtool gettext-dev glib-dev intltool vala \
17 gtk2-dev pango-dev cairo-dev menu-cache-dev libexif-dev"
18 SIBLINGS="libfm-extra"
19 SPLIT="$PACKAGE-gtk $PACKAGE-dev"
21 compile_rules() {
22 # tarball from git.lxde.org requires this step
23 [ -e "$src/configure" ] || ./autogen.sh
25 ./configure \
26 --disable-static \
27 $CONFIGURE_ARGS &&
28 fix libtool &&
29 make &&
30 make install || return 1
32 # remove useless file
33 rm -r $install/usr/share/mime/
34 # remove libfm-extra package files
35 find $install \( -name 'libfm-extra*' -o -name 'fm-extra.h' -o \
36 -name 'fm-version.h' -o -name 'fm-xml-file.h' \) -delete
37 }
39 genpkg_rules() {
40 case $PACKAGE in
41 libfm)
42 copy etc/ libfm.so* vfs*.so *.list
43 # define terminal
44 sed -i 2i\ 'terminal=terminal' $fs/etc/xdg/libfm/libfm.conf
45 # set small & pane icon size to 16
46 sed -i 's|\(\(small\|pane\)_icon_size=\).*|\116|' \
47 $fs/etc/xdg/libfm/libfm.conf
49 CAT="system-tools|core library"
50 DEPENDS="glib libexif libfm-extra menu-cache"
51 COOKOPTS="!menus"
52 SUGGESTED="gvfs"
53 CONFIG_FILES="/etc/xdg/libfm/libfm.conf"
54 ;;
55 libfm-gtk)
56 copy bin/ applications/ images/ ui/ libfm-gtk.so* gtk*.so
57 CAT="system-tools|GTK+2 GUI library"
58 DEPENDS="atk cairo gdk-pixbuf glib gtk2 libfm menu-cache pango"
59 PROVIDE="lxshortcut"
60 ;;
61 libfm-dev)
62 copy @dev
63 DEPENDS="libfm libfm-gtk libfm-extra-dev \
64 glib-dev gtk2-dev"
65 ;;
66 esac
67 }