wok-next annotate wbar2/receipt @ rev 16169

ARM: add tint2 and wbar2 for a nice OpenBox desktop
author Christophe Lincoln <pankso@slitaz.org>
date Sun Mar 30 00:47:31 2014 +0100 (2014-03-30)
parents 55f7cc28d25f
children 6dd5b7ae0e11
rev   line source
gokhlayeh@8816 1 # SliTaz package receipt.
gokhlayeh@8816 2
gokhlayeh@8816 3 PACKAGE="wbar2"
erjo@15674 4 VERSION="2.3.4"
gokhlayeh@8816 5 CATEGORY="system-tools"
gokhlayeh@8816 6 SHORT_DESC="Quick launch bar."
gokhlayeh@8816 7 MAINTAINER="gokhlayeh@slitaz.org"
pascal@15363 8 LICENSE="GPL3"
gokhlayeh@8816 9 SOURCE="wbar"
erjo@15674 10 TARBALL="$SOURCE-$VERSION.tgz"
gokhlayeh@8816 11 WEB_SITE="http://code.google.com/p/wbar/"
gokhlayeh@8816 12 WGET_URL="http://wbar.googlecode.com/files/$TARBALL"
pankso@9763 13 CONFIG_FILES="/etc/default/wbar/wbar.cfg"
pankso@9763 14 TAGS="desktop launchbar"
pankso@16169 15 HOST_ARCH="i486 arm"
pankso@9763 16
pankso@16169 17 DEPENDS="ttf-dejavu imlib2 gtk+ libglade"
pankso@16169 18 BUILD_DEPENDS="imlib2-dev"
pankso@16169 19
pankso@16169 20 # Handle cross compilation
pankso@16169 21 case "$ARCH" in
pankso@16169 22 i?86) BUILD_DEPENDS="$BUILD_DEPENDS gtk+-dev libglade-dev intltool" ;;
pankso@16169 23 arm*) ARCH_ARGS="--disable-wbar-config" ;;
pankso@16169 24 esac
gokhlayeh@8816 25
gokhlayeh@8816 26 # Rules to configure and make the package.
gokhlayeh@8816 27 compile_rules()
gokhlayeh@8816 28 {
pankso@16169 29 ./configure \
pankso@16169 30 --exec-prefix=/usr \
pankso@16169 31 --sysconfdir=/etc \
pankso@16169 32 $CONFIGURE_ARGS ${ARCH_ARGS} &&
gokhlayeh@8816 33 make && make install
gokhlayeh@8816 34 }
gokhlayeh@8816 35
gokhlayeh@8816 36 # Rules to gen a SliTaz package suitable for Tazpkg.
gokhlayeh@8816 37 genpkg_rules()
gokhlayeh@8816 38 {
erjo@15699 39 mkdir -p $fs/usr/share $fs/usr/share/applications
erjo@15674 40 cp -a $install/usr/bin $fs/usr
pankso@16169 41 cp -a $install/etc $fs
erjo@15674 42 cp -a $install/usr/share/pixmaps $fs/usr/share
erjo@15674 43 cp -a $install/usr/share/wbar $fs/usr/share
erjo@15699 44 mv $fs/etc/wbar.d/wbar.desktop $fs/usr/share/applications
pankso@16169 45 case "$ARCH" in
pankso@16169 46 i?86) cp -a $stuff/wbar.cfg $fs/etc/wbar.d ;;
pankso@16169 47 arm*) cp -a $stuff/wbar-arm.cfg $fs/etc/wbar.d/wbar.cfg ;;
pankso@16169 48 esac
pankso@9325 49 }