wok-next annotate lxpanel/receipt @ rev 20513
A lot of tiny edits; remove wget and pkg-build from $BUILD_DEPENDS and from *-dev packages $DEPENDS.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Mar 21 15:58:17 2018 +0200 (2018-03-21) |
parents | c4e53a39395a |
children | 757d032c55c7 |
rev | line source |
---|---|
al@19845 | 1 # SliTaz package receipt v2. |
pankso@341 | 2 |
pankso@341 | 3 PACKAGE="lxpanel" |
al@19868 | 4 COMMIT="768c48fe9868adcbb48d1787b448675432f1bb6a" |
al@19868 | 5 VERSION="0.9.3.11" # 11th commit after 0.9.3 release |
pankso@341 | 6 CATEGORY="x-window" |
al@17992 | 7 SHORT_DESC="LXDE panel" |
pankso@341 | 8 MAINTAINER="pankso@slitaz.org" |
pascal@15002 | 9 LICENSE="GPL2" |
al@19868 | 10 WEB_SITE="https://wiki.lxde.org/en/LXPanel" |
al@19845 | 11 |
al@19868 | 12 TARBALL="$PACKAGE-$VERSION.tar.xz" |
al@19868 | 13 WGET_URL="https://git.lxde.org/gitweb/?p=lxde/lxpanel.git;a=snapshot;h=$COMMIT;sf=txz" |
pankso@341 | 14 |
al@19845 | 15 BUILD_DEPENDS_arm="gtk+-dev menu-cache-dev alsa-lib-dev wireless_tools-dev \ |
pankso@16260 | 16 libxml2-dev lxmenu-data" |
al@19868 | 17 BUILD_DEPENDS="automake libtool intltool gtk+-dev menu-cache-dev alsa-lib-dev \ |
al@19868 | 18 wireless_tools-dev libxml2-dev lxmenu-data libwnck2-dev libfm-dev \ |
al@19868 | 19 libkeybinder-dev" |
al@19845 | 20 SPLIT="lxpanel-extra lxpanel lxpanel-dev" |
pankso@9694 | 21 |
pankso@341 | 22 # Rules to configure and make the package. |
pankso@341 | 23 compile_rules() |
pankso@341 | 24 { |
al@19845 | 25 case "$ARCH" in |
al@19868 | 26 arm*) ARCH_ARGS='--with-plugins="netstatus,volumealsa,cpu,batt,xkb,thermal,cpufreq,monitors"';; |
al@19845 | 27 esac |
al@19845 | 28 |
al@19868 | 29 ./autogen.sh |
al@19868 | 30 CFLAGS="$CFLAGS -lgmodule-2.0" |
al@14260 | 31 ./configure \ |
al@14260 | 32 --sysconfdir=/etc \ |
al@14260 | 33 --localstatedir=/var \ |
al@19868 | 34 $ARCH_ARGS \ |
al@14260 | 35 $CONFIGURE_ARGS && |
al@19845 | 36 make && make install || exit 1 |
al@19845 | 37 |
al@19868 | 38 # SliTaz profile |
al@19868 | 39 cp -r $stuff/slitaz $install/etc/xdg/lxpanel/ |
al@19845 | 40 |
al@19845 | 41 chown -R root:root $install |
pankso@341 | 42 } |
pankso@341 | 43 |
pankso@341 | 44 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@341 | 45 genpkg_rules() |
pankso@341 | 46 { |
al@19845 | 47 case $PACKAGE in |
al@19845 | 48 lxpanel-extra) |
al@19868 | 49 copy kbled.so ns-*.png *lock-*.png xkb-flags/ \ |
al@19845 | 50 background.png file-manager.png gnome-*.png mute.png \ |
al@19845 | 51 stock_volume.png volume-*.png window-manager.png |
al@19845 | 52 CAT="x-window|extra files and plugins" |
al@19845 | 53 TAGS="LXDE" |
al@19868 | 54 DEPENDS="lxpanel" |
al@19845 | 55 ;; |
al@19845 | 56 lxpanel) |
al@20513 | 57 copy @std @rm |
al@19845 | 58 DEPENDS="alsa-lib atk bzlib cairo fontconfig freetype gdk-pixbuf \ |
al@19868 | 59 glib gtk+ libexif libffi libfm libfm-gtk libharfbuzz libkeybinder \ |
al@19868 | 60 liblzma libpng16 libwnck2 libxml2 menu-cache pango pcre \ |
al@19868 | 61 startup-notification util-linux-blkid util-linux-mount \ |
al@19868 | 62 util-linux-uuid wireless_tools xorg-libX11 xorg-libXau \ |
al@19868 | 63 xorg-libXdmcp xorg-libXext xorg-libXrender xorg-libxcb xorg-pixman \ |
al@19868 | 64 xorg-xcb-util zlib slitaz-menus" |
al@19868 | 65 #CONFIG_FILES="/etc/xdg/lxpanel/default/" |
al@19845 | 66 TAGS="LXDE gtk2 panel" |
al@19845 | 67 SUGGESTED="lxde lxsession slitaz-icon" |
al@19845 | 68 ;; |
al@19845 | 69 lxpanel-dev) |
al@19845 | 70 copy @dev |
al@19845 | 71 DEPENDS="lxpanel lxpanel-extra \ |
al@19868 | 72 atk-dev bzip2-dev cairo-dev fontconfig-dev freetype-dev \ |
al@19868 | 73 gdk-pixbuf-dev glib-dev gtk+-dev harfbuzz-dev libexif-dev \ |
al@19868 | 74 libffi-dev libfm-dev libkeybinder-dev libpng16-dev libwnck2-dev \ |
al@19868 | 75 libxml2-dev lxpanel menu-cache-dev pango-dev pcre-dev \ |
al@19868 | 76 startup-notification-dev util-linux-blkid-dev util-linux-mount-dev \ |
al@19868 | 77 util-linux-uuid-dev xorg-libX11-dev xorg-libXau-dev \ |
al@19868 | 78 xorg-libXdmcp-dev xorg-libXext-dev xorg-libXrender-dev \ |
al@19868 | 79 xorg-libxcb-dev xorg-pixman-dev xorg-xcb-util-dev xz-dev zlib" |
al@19845 | 80 ;; |
al@19845 | 81 esac |
pankso@610 | 82 } |
al@18582 | 83 |
al@19845 | 84 # Clean LXPanel menu caches |
al@19845 | 85 post_install() { |
al@19427 | 86 chroot "$1/" rm home/*/.cache/menus/* 2>/dev/null |
al@19427 | 87 : |
al@18582 | 88 } |