wok-next annotate libfm/receipt @ rev 21105
Small updates... "bzip2" and "cairo": follow "libpkg - pkg - pkg-dev" rule
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Jan 04 17:29:48 2019 +0200 (2019-01-04) |
parents | e19ff076dc63 |
children |
rev | line source |
---|---|
al@19812 | 1 # SliTaz package receipt v2. |
pascal@11205 | 2 |
pascal@11205 | 3 PACKAGE="libfm" |
al@21085 | 4 VERSION="1.3.1" |
pascal@11205 | 5 CATEGORY="system-tools" |
al@20443 | 6 SHORT_DESC="File management support" |
al@21020 | 7 MAINTAINER="devel@slitaz.org" |
pascal@14714 | 8 LICENSE="GPL2" |
al@19893 | 9 WEB_SITE="https://wiki.lxde.org/en/Libfm" |
al@21017 | 10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/lxde/libfm.html" |
al@19693 | 11 |
pankso@15750 | 12 TARBALL="$PACKAGE-$VERSION.tar.xz" |
al@20856 | 13 WGET_URL="https://git.lxde.org/gitweb/?p=lxde/libfm.git;a=snapshot;h=$VERSION;sf=txz" |
al@21085 | 14 TARBALL_SHA1="34dc0795e8a8a2dec735fdedc7b7cfc5412d8174" |
pankso@11897 | 15 |
al@21094 | 16 COOKOPTS="force-arch" # different .h |
al@21094 | 17 |
al@21020 | 18 BUILD_DEPENDS="automake gtk-doc libtool gettext-dev glib-dev intltool vala \ |
al@21017 | 19 gtk2-dev pango-dev cairo-dev menu-cache-dev libexif-dev" |
al@21085 | 20 SPLIT="$PACKAGE-gtk $PACKAGE $PACKAGE-dev" |
al@21085 | 21 |
al@21085 | 22 COPY_gtk="bin/ applications/ images/ ui/ libfm-gtk.so* gtk*.so" |
al@21085 | 23 |
al@21085 | 24 DEPENDS_std="glib libexif libfm-extra menu-cache" |
al@21105 | 25 DEPENDS_gtk="$PACKAGE atk libcairo gdk-pixbuf glib gtk2 menu-cache pango" |
al@21085 | 26 DEPENDS_dev="$PACKAGE $PACKAGE-gtk libfm-extra-dev glib-dev gtk2-dev" |
al@21085 | 27 |
al@21085 | 28 CAT_std="system-tools|core library" |
al@21085 | 29 CAT_gtk="system-tools|GTK+2 GUI library" |
al@21085 | 30 |
al@21085 | 31 SUGGESTED_std="gvfs" |
al@21085 | 32 CONFIG_FILES_std="/etc/xdg/libfm/libfm.conf" |
al@21085 | 33 PROVIDE_gtk="lxshortcut" |
al@21085 | 34 |
al@21085 | 35 COOKOPTS="!menus" |
al@19693 | 36 SIBLINGS="libfm-extra" |
pankso@16276 | 37 |
al@20443 | 38 compile_rules() { |
al@21085 | 39 ./autogen.sh |
al@20856 | 40 |
pascal@11205 | 41 ./configure \ |
al@19693 | 42 --disable-static \ |
pascal@11205 | 43 $CONFIGURE_ARGS && |
al@20534 | 44 fix libtool && |
al@20534 | 45 make && |
al@20534 | 46 make install || return 1 |
al@19812 | 47 |
al@19812 | 48 # remove useless file |
al@20443 | 49 rm -r $install/usr/share/mime/ |
al@21085 | 50 |
al@19812 | 51 # remove libfm-extra package files |
al@19812 | 52 find $install \( -name 'libfm-extra*' -o -name 'fm-extra.h' -o \ |
al@19812 | 53 -name 'fm-version.h' -o -name 'fm-xml-file.h' \) -delete |
al@21085 | 54 |
al@21085 | 55 # define terminal |
al@21085 | 56 sed -i 2i\ 'terminal=terminal' $install/etc/xdg/libfm/libfm.conf |
al@21085 | 57 |
al@21085 | 58 # set small & pane icon size to 16 |
al@21085 | 59 sed -i 's|\(\(small\|pane\)_icon_size=\).*|\116|' $install/etc/xdg/libfm/libfm.conf |
pascal@11205 | 60 } |