wok-next view libfm/receipt @ rev 20137

mariadb: receipt v2
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Oct 31 21:42:04 2017 +0100 (2017-10-31)
parents 4688f12eea68
children 0e7893ac206d
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 (core library)"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://wiki.lxde.org/en/Libfm"
10 HOST_ARCH="i486 arm"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="$SF_MIRROR/pcmanfm/files/$TARBALL"
15 BUILD_DEPENDS="vala intltool gtk+-dev menu-cache-dev libexif-dev gtk-doc"
16 BUILD_DEPENDS_arm="gtk+-dev dbus-glib-dev dbus-dev startup-notification-dev \
17 xorg-libxcb-dev xcb-util-dev menu-cache-dev expat-dev glib-dev \
18 shared-mime-info-dev"
19 SIBLINGS="libfm-extra"
20 SPLIT="libfm-gtk libfm-dev"
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 # http://www.linuxfromscratch.org/blfs/view/stable/lxde/libfm.html
26 ./configure \
27 --sysconfdir=/etc \
28 --disable-static \
29 --enable-gtk-doc \
30 $CONFIGURE_ARGS &&
31 make && make install &&
33 # remove useless file
34 rm -r $install/usr/share/mime/ &&
35 # remove libfm-extra package files
36 find $install \( -name 'libfm-extra*' -o -name 'fm-extra.h' -o \
37 -name 'fm-version.h' -o -name 'fm-xml-file.h' \) -delete
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 case $PACKAGE in
44 libfm)
45 copy etc/ libfm.so* vfs*.so *.list
46 # define terminal
47 sed -i 2i\ 'terminal=terminal' $fs/etc/xdg/libfm/libfm.conf
48 # set small & pane icon size to 16
49 sed -i 's|\(\(small\|pane\)_icon_size=\).*|\116|' \
50 $fs/etc/xdg/libfm/libfm.conf
52 CAT="system-tools|core library"
53 DEPENDS="glib libexif libffi libfm-extra menu-cache pcre \
54 util-linux-blkid util-linux-mount util-linux-uuid zlib"
55 GENERIC_MENUS="no"
56 SUGGESTED="gvfs"
57 CONFIG_FILES="/etc/xdg/libfm/libfm.conf"
58 ;;
59 libfm-gtk)
60 copy bin/ applications/ images/ ui/ libfm-gtk.so* gtk*.so
61 CAT="system-tools|GTK+2 GUI library"
62 DEPENDS="libfm atk cairo fontconfig freetype gdk-pixbuf glib gtk+ \
63 menu-cache pango"
64 PROVIDE="lxshortcut"
65 ;;
66 libfm-dev)
67 copy @dev
68 DEPENDS="libfm libfm-gtk libfm-extra-dev \
69 atk-dev bzip2-dev cairo-dev fontconfig-dev freetype-dev \
70 gdk-pixbuf-dev glib-dev gtk+-dev harfbuzz-dev libexif-dev \
71 libffi-dev libpng16-dev libxml2-dev menu-cache-dev pango-dev \
72 pcre-dev util-linux-blkid-dev util-linux-mount-dev \
73 util-linux-uuid-dev xorg-libX11-dev xorg-libXau-dev \
74 xorg-libXdmcp-dev xorg-libXext-dev xorg-libXrender-dev \
75 xorg-libxcb-dev xorg-pixman-dev xz-dev zlib-dev"
76 ;;
77 esac
78 }