wok-next view libfm/receipt @ rev 20553

Up cookutils (1045), tazpkg (963)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Apr 06 13:36:51 2018 +0300 (2018-04-06)
parents 7eb047d2b438
children cac2c0130f0d
line source
1 # SliTaz package receipt v2.
3 PACKAGE="libfm"
4 VERSION="1.2.5"
5 CATEGORY="system-tools"
6 SHORT_DESC="File management support"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://wiki.lxde.org/en/Libfm"
10 LFS="http://www.linuxfromscratch.org/blfs/view/stable/lxde/libfm.html"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="$SF_MIRROR/pcmanfm/files/$TARBALL"
15 BUILD_DEPENDS_arm="gtk+-dev dbus-glib-dev dbus-dev startup-notification-dev \
16 xorg-libxcb-dev xorg-xcb-util-dev menu-cache-dev expat-dev glib-dev \
17 shared-mime-info-dev"
18 BUILD_DEPENDS="vala intltool gtk+-dev menu-cache-dev libexif-dev"
19 SIBLINGS="libfm-extra"
20 SPLIT="libfm-gtk libfm-dev"
22 compile_rules() {
23 ./configure \
24 --disable-static \
25 $CONFIGURE_ARGS &&
26 fix libtool &&
27 make &&
28 make install || return 1
30 # remove useless file
31 rm -r $install/usr/share/mime/
32 # remove libfm-extra package files
33 find $install \( -name 'libfm-extra*' -o -name 'fm-extra.h' -o \
34 -name 'fm-version.h' -o -name 'fm-xml-file.h' \) -delete
35 }
37 genpkg_rules() {
38 case $PACKAGE in
39 libfm)
40 copy etc/ libfm.so* vfs*.so *.list
41 # define terminal
42 sed -i 2i\ 'terminal=terminal' $fs/etc/xdg/libfm/libfm.conf
43 # set small & pane icon size to 16
44 sed -i 's|\(\(small\|pane\)_icon_size=\).*|\116|' \
45 $fs/etc/xdg/libfm/libfm.conf
47 CAT="system-tools|core library"
48 DEPENDS="glib libexif libffi libfm-extra menu-cache pcre \
49 util-linux-blkid util-linux-mount util-linux-uuid zlib"
50 GENERIC_MENUS="no"
51 SUGGESTED="gvfs"
52 CONFIG_FILES="/etc/xdg/libfm/libfm.conf"
53 ;;
54 libfm-gtk)
55 copy bin/ applications/ images/ ui/ libfm-gtk.so* gtk*.so
56 CAT="system-tools|GTK+2 GUI library"
57 DEPENDS="libfm atk cairo fontconfig freetype gdk-pixbuf glib gtk+ \
58 menu-cache pango"
59 PROVIDE="lxshortcut"
60 ;;
61 libfm-dev)
62 copy @dev
63 DEPENDS="libfm libfm-gtk libfm-extra-dev \
64 atk-dev bzip2-dev cairo-dev fontconfig-dev freetype-dev \
65 gdk-pixbuf-dev glib-dev gtk+-dev harfbuzz-dev libexif-dev \
66 libffi-dev libpng16-dev libxml2-dev menu-cache-dev pango-dev \
67 pcre-dev util-linux-blkid-dev util-linux-mount-dev \
68 util-linux-uuid-dev xorg-libX11-dev xorg-libXau-dev \
69 xorg-libXdmcp-dev xorg-libXext-dev xorg-libXrender-dev \
70 xorg-libxcb-dev xorg-pixman-dev xz-dev zlib-dev"
71 ;;
72 esac
73 }