wok-next annotate libfm/receipt @ rev 21017

Some maintenance
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Oct 16 16:46:05 2018 +0300 (2018-10-16)
parents 6befec62b46c
children d5aab818505e
rev   line source
al@19812 1 # SliTaz package receipt v2.
pascal@11205 2
pascal@11205 3 PACKAGE="libfm"
al@20856 4 VERSION="1.3.0.2"
pascal@11205 5 CATEGORY="system-tools"
al@20443 6 SHORT_DESC="File management support"
pascal@11205 7 MAINTAINER="pankso@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="$SF_MIRROR/pcmanfm/$TARBALL" # SF download problems
al@20856 14 WGET_URL="https://git.lxde.org/gitweb/?p=lxde/libfm.git;a=snapshot;h=$VERSION;sf=txz"
pankso@11897 15
al@20856 16 BUILD_DEPENDS="automake gtk-doc libtool gettext glib-dev intltool vala \
al@21017 17 gtk2-dev pango-dev cairo-dev menu-cache-dev libexif-dev"
al@19693 18 SIBLINGS="libfm-extra"
al@19693 19 SPLIT="libfm-gtk libfm-dev"
pankso@16276 20
al@20443 21 compile_rules() {
al@20856 22 # tarball from git.lxde.org requires this step
al@20856 23 [ -e "$src/configure" ] || ./autogen.sh
al@20856 24
pascal@11205 25 ./configure \
al@19693 26 --disable-static \
pascal@11205 27 $CONFIGURE_ARGS &&
al@20534 28 fix libtool &&
al@20534 29 make &&
al@20534 30 make install || return 1
al@19812 31
al@19812 32 # remove useless file
al@20443 33 rm -r $install/usr/share/mime/
al@19812 34 # remove libfm-extra package files
al@19812 35 find $install \( -name 'libfm-extra*' -o -name 'fm-extra.h' -o \
al@19812 36 -name 'fm-version.h' -o -name 'fm-xml-file.h' \) -delete
pascal@11205 37 }
pascal@11205 38
al@20443 39 genpkg_rules() {
al@19812 40 case $PACKAGE in
al@19812 41 libfm)
al@19812 42 copy etc/ libfm.so* vfs*.so *.list
al@19812 43 # define terminal
al@19812 44 sed -i 2i\ 'terminal=terminal' $fs/etc/xdg/libfm/libfm.conf
al@19812 45 # set small & pane icon size to 16
al@19812 46 sed -i 's|\(\(small\|pane\)_icon_size=\).*|\116|' \
al@19812 47 $fs/etc/xdg/libfm/libfm.conf
al@19693 48
al@19812 49 CAT="system-tools|core library"
al@20639 50 DEPENDS="glib libexif libfm-extra menu-cache"
al@20943 51 COOKOPTS="!menus"
al@19812 52 SUGGESTED="gvfs"
al@19812 53 CONFIG_FILES="/etc/xdg/libfm/libfm.conf"
al@19812 54 ;;
al@19812 55 libfm-gtk)
al@19812 56 copy bin/ applications/ images/ ui/ libfm-gtk.so* gtk*.so
al@19812 57 CAT="system-tools|GTK+2 GUI library"
al@21017 58 DEPENDS="atk cairo gdk-pixbuf glib gtk2 libfm menu-cache pango"
al@19893 59 PROVIDE="lxshortcut"
al@19812 60 ;;
al@19812 61 libfm-dev)
al@19812 62 copy @dev
al@19812 63 DEPENDS="libfm libfm-gtk libfm-extra-dev \
al@21017 64 glib-dev gtk2-dev"
al@19812 65 ;;
al@19812 66 esac
pascal@11205 67 }