wok-next view libfm/receipt @ rev 20454
Choose between libpng16 and libpng12
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Feb 28 17:32:31 2018 +0200 (2018-02-28) |
parents | 0e7893ac206d |
children | 757d032c55c7 |
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 --sysconfdir=/etc \
25 --disable-static \
26 $CONFIGURE_ARGS &&
27 make && make install || return 1
29 # remove useless file
30 rm -r $install/usr/share/mime/
31 # remove libfm-extra package files
32 find $install \( -name 'libfm-extra*' -o -name 'fm-extra.h' -o \
33 -name 'fm-version.h' -o -name 'fm-xml-file.h' \) -delete
34 }
36 genpkg_rules() {
37 case $PACKAGE in
38 libfm)
39 copy etc/ libfm.so* vfs*.so *.list
40 # define terminal
41 sed -i 2i\ 'terminal=terminal' $fs/etc/xdg/libfm/libfm.conf
42 # set small & pane icon size to 16
43 sed -i 's|\(\(small\|pane\)_icon_size=\).*|\116|' \
44 $fs/etc/xdg/libfm/libfm.conf
46 CAT="system-tools|core library"
47 DEPENDS="glib libexif libffi libfm-extra menu-cache pcre \
48 util-linux-blkid util-linux-mount util-linux-uuid zlib"
49 GENERIC_MENUS="no"
50 SUGGESTED="gvfs"
51 CONFIG_FILES="/etc/xdg/libfm/libfm.conf"
52 ;;
53 libfm-gtk)
54 copy bin/ applications/ images/ ui/ libfm-gtk.so* gtk*.so
55 CAT="system-tools|GTK+2 GUI library"
56 DEPENDS="libfm atk cairo fontconfig freetype gdk-pixbuf glib gtk+ \
57 menu-cache pango"
58 PROVIDE="lxshortcut"
59 ;;
60 libfm-dev)
61 copy @dev
62 DEPENDS="libfm libfm-gtk libfm-extra-dev \
63 atk-dev bzip2-dev cairo-dev fontconfig-dev freetype-dev \
64 gdk-pixbuf-dev glib-dev gtk+-dev harfbuzz-dev libexif-dev \
65 libffi-dev libpng16-dev libxml2-dev menu-cache-dev pango-dev \
66 pcre-dev util-linux-blkid-dev util-linux-mount-dev \
67 util-linux-uuid-dev xorg-libX11-dev xorg-libXau-dev \
68 xorg-libXdmcp-dev xorg-libXext-dev xorg-libXrender-dev \
69 xorg-libxcb-dev xorg-pixman-dev xz-dev zlib-dev"
70 ;;
71 esac
72 }