wok-next annotate spacefm/receipt @ rev 20659

Up libical (3.0.1), libidn2 (2.0.4), libunistring (0.9.8), logrotate (3.11.0), mc (4.8.20), mercurial (4.5), nasm (2.13.03), newt (0.52.20), node (9.5.0), opencv (3.4.1), slitaz-tools-boxes (1028), slitaz-tools (1028), spacefm (1.0.6), tiff (4.0.9); add npapi-sdk, obex-data-server.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed May 09 16:46:19 2018 +0300 (2018-05-09)
parents 5c189fc65a98
children f48456621a9d
rev   line source
al@20604 1 # SliTaz package receipt v2.
pankso@11898 2
pankso@11898 3 PACKAGE="spacefm"
al@20659 4 VERSION="1.0.6"
al@20659 5 CATEGORY="meta"
al@20659 6 SHORT_DESC="Multi-panel tabbed file and desktop manager"
al@20659 7 MAINTAINER="al.bobylev@gmail.com"
pascal@14999 8 LICENSE="GPL3"
al@20604 9 WEB_SITE="http://ignorantguru.github.io/spacefm/"
al@20604 10
al@20659 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
al@20659 12 WGET_URL="https://github.com/IgnorantGuru/spacefm/archive/$VERSION.tar.gz"
pankso@11898 13
al@20659 14 BUILD_DEPENDS="intltool gtk+-dev gtk+3-dev startup-notification-dev eudev-dev \
al@20659 15 ffmpegthumbnailer-dev"
al@20659 16 SPLIT="spacefm spacefm-gtk2:gtk2 spacefm-gtk3:gtk3"
pankso@11898 17
al@20604 18 compile_rules() {
al@20659 19 case $SET in
al@20659 20 '') rm -r $src; mkdir $install; return 0;;
al@20659 21 gtk2) SET_ARGS='--with-gtk2';;
al@20659 22 gtk3) SET_ARGS='--with-gtk3';;
al@20659 23 esac
pascal@13788 24
pankso@11898 25 ./configure \
al@20659 26 --with-preferable-sudo=/usr/bin/subox \
al@20659 27 $SET_ARGS \
pankso@11898 28 $CONFIGURE_ARGS &&
al@20604 29 fix libtool &&
al@20604 30 make &&
al@20659 31 make MKDIRPROG='mkdir -p' install || return 1
al@20604 32
al@20659 33 install -Dm644 $stuff/spacefm-desktop-pref.desktop \
al@20659 34 $install/usr/share/applications/spacefm-desktop-pref.desktop
al@20659 35 install -Dm644 $stuff/xdg/autostart/spacefm.desktop \
al@20659 36 $install/etc/xdg/autostart/spacefm.desktop
al@20659 37 install -Dm644 $stuff/xdg/spacefm/session \
al@20659 38 $install/etc/xdg/spacefm/session
al@20604 39
al@20659 40 # useless file, it adds nothing useful to Freedesktop's shared-mime-info
al@20659 41 rm -r $install/usr/share/mime/
pankso@11898 42 }
pankso@11898 43
al@20604 44 genpkg_rules() {
al@20659 45 case $PACKAGE in
al@20659 46 spacefm)
al@20659 47 CAT="meta|empty meta-package"
al@20659 48 DEPENDS="spacefm-gtk2"
al@20659 49 ;;
al@20659 50 spacefm-gtk2)
al@20659 51 copy @std @ico
al@20659 52 CAT="system-tools|with GTK+2 interface"
al@20659 53 DEPENDS="cairo eudev ffmpegthumbnailer gdk-pixbuf glib gtk+ pango \
al@20659 54 startup-notification xorg-libX11 bash"
al@20659 55 TAGS="file-manager"
al@20659 56 ;;
al@20659 57 spacefm-gtk3)
al@20659 58 copy @std @ico
al@20659 59 CAT="system-tools|with GTK+3 interface"
al@20659 60 DEPENDS="cairo eudev ffmpegthumbnailer gdk-pixbuf glib gtk+3 pango \
al@20659 61 startup-notification xorg-libX11 bash"
al@20659 62 TAGS="file-manager"
al@20659 63 ;;
al@20659 64 esac
pankso@11898 65 }