wok-6.x view libfm/receipt @ rev 18523

Add libdb-cxx
Binaries: "db"; dev files: "db-dev"; libs: "libdb"; libs c++: "libdb-cxx"
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Oct 26 14:50:42 2015 +0200 (2015-10-26)
parents 63bb4b41e580
children d0c0682403b4
line source
1 # SliTaz package receipt.
3 PACKAGE="libfm"
4 VERSION="87217a5"
5 CATEGORY="system-tools"
6 SHORT_DESC="File management support (core library)"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.xz"
10 WEB_SITE="http://pcmanfm.sourceforge.net"
11 #WGET_URL="$SF_MIRROR/pcmanfm/files/$TARBALL"
12 WGET_URL="http://git.lxde.org/gitweb/?p=lxde/libfm.git;a=snapshot;h=$VERSION;sf=txz"
13 EXTRA_SOURCE_FILES="$PACKAGE-reverse_patch.u" # Fix segfaults
14 WGET_URL2="https://github.com/lxde/libfm/commit/113ea3c.diff"
15 HOST_ARCH="i486 arm"
16 GENERIC_MENUS="no"
18 SUGGESTED="gvfs"
19 DEPENDS="glib glibc-base libffi libgio menu-cache pcre zlib"
20 BUILD_DEPENDS="gtk+-dev dbus-glib-dev dbus-dev startup-notification-dev \
21 libxcb-dev xcb-util-dev menu-cache-dev expat-dev libgio-dev \
22 shared-mime-info-dev gtk-doc libtool automake"
24 case "$ARCH" in
25 i?86) BUILD_DEPENDS="$BUILD_DEPENDS intltool vala"
26 esac
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 [ -s $SOURCES_REPOSITORY/$EXTRA_SOURCE_FILES ] || \
32 wget -O $SOURCES_REPOSITORY/$EXTRA_SOURCE_FILES $WGET_URL2
33 patch -p1 -R -i $SOURCES_REPOSITORY/$EXTRA_SOURCE_FILES
34 ./autogen.sh
35 ./configure \
36 --sysconfdir=/etc \
37 $CONFIGURE_ARGS &&
38 make && make install
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/usr/lib/libfm/modules $fs/usr/share/libfm
45 cp -a $install/etc $fs
46 cp -a $install/usr/lib/libfm.so* $fs/usr/lib
47 cp -a $install/usr/lib/libfm-extra.so* $fs/usr/lib
48 cp -a $install/usr/lib/libfm/modules/vfs* $fs/usr/lib/libfm/modules
49 cp -a $install/usr/share/libfm/*.list $fs/usr/share/libfm
50 sed "s|application/deb;$|&application/x-xz-compressed-tar;|" -i \
51 $fs/usr/share/libfm/archivers.list
52 # define terminal
53 sed -i 2i\ 'terminal=terminal' $fs/etc/xdg/libfm/libfm.conf
54 # set small & pane icon size to 16
55 sed -i 's|\(\(small\|pane\)_icon_size=\).*|\116|' $fs/etc/xdg/libfm/libfm.conf
56 }